From e58d830e0c2d4c2d2a06259801b3e46dc1a4a5db Mon Sep 17 00:00:00 2001 From: "adel.ka" Date: Thu, 27 Nov 2025 09:15:44 +0300 Subject: [PATCH] SUPPORT-9601: fix redirect --- frontend/src/ts/modules/security/guard/auth.guard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());