The functionality I want to achieve is to be able to have an url like that :
https://myapp.com/?orgId=xxx&username=yyy
That will pre-fill my lo
When using router inside a guard, the queryParamsHandling is not handled.
You have to set the redirection query params manually by extracting them from the activated route:
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
// ...
this.router.navigate(['/login'], { queryParams: route.queryParams });
// ...
}