fix(router): fix CanActivate redirect to the root on initial load (#13929)
Closes #13530 PR Close #13929
This commit is contained in:

committed by
Miško Hevery

parent
029f558d45
commit
e075b1ba83
@ -757,8 +757,8 @@ export class Router {
|
||||
})
|
||||
.then(
|
||||
() => {
|
||||
this.navigated = true;
|
||||
if (navigationIsSuccessful) {
|
||||
this.navigated = true;
|
||||
this.routerEvents.next(new NavigationEnd(
|
||||
id, this.serializeUrl(url), this.serializeUrl(this.currentUrlTree)));
|
||||
resolvePromise(true);
|
||||
|
Reference in New Issue
Block a user