SUPPORT-9601: fix redirect
This commit is contained in:
parent
6201c24d10
commit
e58d830e0c
1 changed files with 2 additions and 2 deletions
|
|
@ -29,14 +29,14 @@ export abstract class AuthGuard implements CanActivate {
|
|||
let url = new URL(window.location.href);
|
||||
if (!AccessChecker.checkBrowser()) {
|
||||
this.progressIndicationService.hideProgressBar();
|
||||
window.open(url.origin + this.landingUlUrl, "_self");
|
||||
window.location.replace(url.origin + this.landingUlUrl);
|
||||
return false;
|
||||
}
|
||||
|
||||
return AccessChecker.checkCsp(this.cspTimeout)
|
||||
.then((cspCheckPassed) => {
|
||||
if (!cspCheckPassed) {
|
||||
window.open(url.origin + this.landingUlUrl, "_self");
|
||||
window.location.replace(url.origin + this.landingUlUrl);
|
||||
return Promise.reject("CSP check failed - redirecting to landing")
|
||||
}
|
||||
return Promise.resolve(this.checkAccess());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue