I use oauth authentication to login user. After the user has logged in, get taken from URL. URL like this: http://xxx/callback#access_token=xxx. then redirect to other page. I use this.router.navigateByUrl to redirect, the hash tag is removed but when I click other link,the hash fragment will show again. How can I remove the hash token fragment permanently?
Example:
after use login in //xxx/callback#access_token=xxx
redirect to //xxx/home
then click linkA, the url is //xxx/linkA#access_token=xxx
expected url is //xxx/linkA