SUPPORT-9164: Clear url
This commit is contained in:
parent
79c23b23b2
commit
f6b0561412
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ export abstract class AuthGuard implements CanActivate {
|
|||
let state = params.get('state');
|
||||
let error = params.get('error');
|
||||
let errorDescription = params.get('error_description');
|
||||
if (code || state || error || errorDescription) {
|
||||
window.history.replaceState({}, document.title, url.pathname);
|
||||
}
|
||||
if (isAccess) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue