|
|
@ -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; |
|
|
|