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;