mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(angular): ensure all NavigationExtras values are preserved when navigating (#18468)
fixes #18469
This commit is contained in:
@ -202,7 +202,12 @@ export class NavController {
|
||||
urlTree.fragment = options.fragment;
|
||||
}
|
||||
|
||||
return this.router!.navigateByUrl(urlTree);
|
||||
/**
|
||||
* `navigateByUrl` will still apply `NavigationExtras` properties
|
||||
* that do not modify the url, such as `replaceUrl` which is why
|
||||
* `options` is passed in here.
|
||||
*/
|
||||
return this.router!.navigateByUrl(urlTree, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user