Return the createUrlTree to see the redirect (#6243)

This commit is contained in:
Maurizio Vitale 2020-10-13 17:35:54 +01:00 committed by GitHub
parent f1231d3c44
commit aabc086ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ export abstract class AuthGuardBase implements CanActivate, CanActivateChild {
if (routeRedirectTo?.length > 0) {
routeRedirectTo[0].redirectTo = redirectFragment;
}
return this.router.createUrlTree([redirectFragment]);
}
return true;
}