Merge pull request #5714 from abpframework/feat/5411-manage-profile

feat: redirect instead of new tab on manageProfile
pull/5719/head
Bunyamin Coskuner 5 years ago committed by GitHub
commit bef74a1aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save