diff --git a/angular/src/providers/nav-controller.ts b/angular/src/providers/nav-controller.ts index ab69d4d89c..1f979935ed 100644 --- a/angular/src/providers/nav-controller.ts +++ b/angular/src/providers/nav-controller.ts @@ -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); } } }