From ab705e9d956bc8fe804f7ba564be6581bb27c680 Mon Sep 17 00:00:00 2001 From: Bunyamin Coskuner Date: Tue, 6 Oct 2020 17:23:59 +0300 Subject: [PATCH] Update npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Levent Arman Özak --- .../packages/account/src/lib/guards/manage-profile.guard.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts b/npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts index 2770fa24bd..4a5b5a0709 100644 --- a/npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts +++ b/npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts @@ -9,9 +9,7 @@ export class ManageProfileGuard implements CanActivate { canActivate(_: ActivatedRouteSnapshot, __: RouterStateSnapshot) { const env = this.configState.getEnvironment(); if (env.oAuthConfig.responseType === 'code') { - window.location.replace( - `${env.oAuthConfig.issuer}/Account/Manage?returnUrl=${window.location.href}`, - ); + window.location.href = `${env.oAuthConfig.issuer}/Account/Manage?returnUrl=${window.location.href}`; return false; } else { return true;