fix(router): support guards navigating synchronously (#11150)
This commit is contained in:

committed by
Victor Berchet

parent
e8a1566065
commit
e2241a2f92
@ -559,9 +559,12 @@ export class Router {
|
||||
rejectPromise(ee);
|
||||
}
|
||||
}
|
||||
this.currentRouterState = storedState;
|
||||
this.currentUrlTree = storedUrl;
|
||||
this.location.replaceState(this.serializeUrl(storedUrl));
|
||||
|
||||
if (id === this.navigationId) {
|
||||
this.currentRouterState = storedState;
|
||||
this.currentUrlTree = storedUrl;
|
||||
this.location.replaceState(this.serializeUrl(storedUrl));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user