Skip to content

Commit

Permalink
Return the createUrlTree to see the redirect (#6243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriziovitale authored Oct 13, 2020
1 parent f1231d3 commit aabc086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/services/auth-guard-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aabc086

Please sign in to comment.