I have router link that navigate between pages and I send parameters in url using
queryParamsHandling: "merge"
In some situations I want to remove specific parameter from url but I don't want to loose all parameters.
My url look like: http://localhost:4200/school/440404?SelectedTab=1&UserName=bat7
After route I want to remove SelectedTab parameter bun not UserName Parameter.
the URL shold look like:
http://localhost:4200/school/440404?UserName=bat7
the router code is in different component,
that contains a back button that do the route, using the code behind:
this.router.navigate([], { relativeTo: this.route, queryParamsHandling: "preserve" });
Any ideas?