Add functionality to remove loginToken from URL
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
bed0185186
commit
b2613740b8
1 changed files with 6 additions and 0 deletions
|
@ -124,4 +124,10 @@ export class URLRouter {
|
||||||
createSSOCallbackURL() {
|
createSSOCallbackURL() {
|
||||||
return window.location.origin;
|
return window.location.origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
normalizeUrl() {
|
||||||
|
// Remove any queryParameters from the URL
|
||||||
|
// Gets rid of the loginToken after SSO
|
||||||
|
this._history.replaceUrlSilently(`${window.location.origin}/${window.location.hash}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue