Remove the hash fragment from url permanently
<p>I use oauth authentication to login user. After the user has  logged in, get taken from URL. URL like this: <a href="http://xxx/callback#access_token=xxx" rel="noreferrer">http://xxx/callback#access_token=xxx</a>. then redirect to other page. I use <strong><em>this.router.navigateByUrl</em></strong> 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?</p>

<p>Example:</p>

<p>after use login in <strong><em>//xxx/callback#access_token=xxx</em></strong></p>

<p>redirect to <strong><em>//xxx/home</em></strong></p>

<p>then click linkA, the url is <strong><em>//xxx/linkA#access_token=xxx</em></strong></p>

<p>expected url is <strong><em>//xxx/linkA</em></strong></p>