I know I can do this
this.router.navigate(["/user-reviews"], username, userId, {skipLocationChange: true})
and the url won't change if I'm coming from
http://localhost:4200/main
and using skipLocationChange, but what I want it to say is http://localhost:4200/user-reviews/bob
How do I do it so that it only hides the userId parameter, but not the username and still retains the new path user-reviews instead of main? Is this possible? I appreciate any help!
reviews/boband then again with the id and skip locaton change, but... this probably isn't the track you want to go down. what about in the case of a page refresh? angular won't have track of what happened or why. skipLocationChange is a useful tool for cases where you want to take advantage of the router but want to be in the same place as when you started, not for obscuring parts of the url.. Maybe put more into the question about why you want to accomplish this and you can get a differnt route