fix(router): forward the query parameters in the ng1 -> ng2 url sync (#16249)

fixes #16067

PR Close #16249
This commit is contained in:
Victor Berchet 2017-04-21 11:08:40 -07:00 committed by Miško Hevery
parent feda017c50
commit 2f977312be
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
}