Browse Source

feat: redirect instead of new tab on manageProfile

pull/5714/head
bnymncoskuner 6 years ago
parent
commit
7bceb03e24
  1. 4
      npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts

4
npm/ng-packs/packages/account/src/lib/guards/manage-profile.guard.ts

@ -9,7 +9,9 @@ export class ManageProfileGuard implements CanActivate {
canActivate(_: ActivatedRouteSnapshot, __: RouterStateSnapshot) { canActivate(_: ActivatedRouteSnapshot, __: RouterStateSnapshot) {
const env = this.configState.getEnvironment(); const env = this.configState.getEnvironment();
if (env.oAuthConfig.responseType === 'code') { if (env.oAuthConfig.responseType === 'code') {
window.open(`${env.oAuthConfig.issuer}/Account/Manage`, '_blank'); window.location.replace(
`${env.oAuthConfig.issuer}/Account/Manage?returnUrl=${window.location.href}`,
);
return false; return false;
} else { } else {
return true; return true;

Loading…
Cancel
Save