fix(router): forward the query parameters in the ng1 -> ng2 url sync (#16249)
fixes #16067 PR Close #16249
This commit is contained in:
parent
feda017c50
commit
2f977312be
|
@ -71,6 +71,6 @@ export function setUpLocationSync(ngUpgrade: UpgradeModule) {
|
|||
ngUpgrade.$injector.get('$rootScope')
|
||||
.$on('$locationChangeStart', (_: any, next: string, __: string) => {
|
||||
url.href = next;
|
||||
router.navigateByUrl(url.pathname);
|
||||
router.navigateByUrl(url.pathname + url.search);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue