In an Angular
application I need to navigate to the parent of a route keeping matrix parameters.
What I want to obtain is navigating from
http://localhost:4200/a/b;param1=xyz;param2=zxy/c
to http://localhost:4200/a/b;param1=xyz;param2=zxy
but when I try to navigate using router.navigate('..',{relativeTo: this.route.url})
what I get is http://localhost:4200/a/b
, and route parameters of b
are lost.
How I can navigate back to b
from child routes keeping its parameters intact?