fix(router): fix navigation from the root component ngOnInit hook (#13932)
Closes #13795 PR Close #13932
This commit is contained in:

committed by
Miško Hevery

parent
e075b1ba83
commit
47d41d492b
@ -364,7 +364,9 @@ export class Router {
|
||||
*/
|
||||
initialNavigation(): void {
|
||||
this.setUpLocationChangeListener();
|
||||
this.navigateByUrl(this.location.path(true), {replaceUrl: true});
|
||||
if (this.navigationId === 0) {
|
||||
this.navigateByUrl(this.location.path(true), {replaceUrl: true});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user