fix(router): encode URLs the same way AngularJS did (closer to spec) (#17890)
fixes #16067
This commit is contained in:
@ -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 + url.search);
|
||||
router.navigateByUrl(url.pathname + url.search + url.hash);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user