diff --git a/frontend/src/ts/modules/security/guard/auth.guard.ts b/frontend/src/ts/modules/security/guard/auth.guard.ts index 58caaaf5..eb4ffbff 100644 --- a/frontend/src/ts/modules/security/guard/auth.guard.ts +++ b/frontend/src/ts/modules/security/guard/auth.guard.ts @@ -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());