From aabc086ac6ed1f2fca406ef599c1050a93ca43b5 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Tue, 13 Oct 2020 17:35:54 +0100 Subject: [PATCH] Return the createUrlTree to see the redirect (#6243) --- lib/core/services/auth-guard-base.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/services/auth-guard-base.ts b/lib/core/services/auth-guard-base.ts index cbbfe0cb8d5..d455365e3c6 100644 --- a/lib/core/services/auth-guard-base.ts +++ b/lib/core/services/auth-guard-base.ts @@ -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; }