fix(router): replaceURL when reacting to a change coming from angularjs

Closes: #20549
This commit is contained in:
vsavkin 2017-11-27 13:06:09 -05:00 committed by Alex Rickabaugh
parent f5bb999319
commit 0b2d636b75
1 changed files with 1 additions and 1 deletions

View File

@ -81,6 +81,6 @@ export function setUpRouterSync(injector: Injector, $injector: any) {
$injector.get('$rootScope').$on('$locationChangeStart', (_: any, next: string, __: string) => {
url.href = next;
router.navigateByUrl(url.pathname + url.search + url.hash);
router.navigateByUrl(url.pathname + url.search + url.hash, {replaceUrl: true});
});
}