fix(router): replaceURL when reacting to a change coming from angularjs
Closes: #20549
This commit is contained in:
parent
f5bb999319
commit
0b2d636b75
|
@ -81,6 +81,6 @@ export function setUpRouterSync(injector: Injector, $injector: any) {
|
||||||
|
|
||||||
$injector.get('$rootScope').$on('$locationChangeStart', (_: any, next: string, __: string) => {
|
$injector.get('$rootScope').$on('$locationChangeStart', (_: any, next: string, __: string) => {
|
||||||
url.href = next;
|
url.href = next;
|
||||||
router.navigateByUrl(url.pathname + url.search + url.hash);
|
router.navigateByUrl(url.pathname + url.search + url.hash, {replaceUrl: true});
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue