Merge pull request #15924 from abpframework/bug/15682-7

extra slash issue fixed in angular from rel-7 (@abp/ng.oauth)
pull/15928/head
Mahmut Gundogdu 3 years ago committed by GitHub
commit 0250322575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,10 +12,10 @@ export const NavigateToManageProfileProvider: Provider = {
console.warn('The oAuthConfig env is missing on environment.ts');
return;
}
window.open(
`${env.oAuthConfig.issuer}/Account/Manage?returnUrl=${window.location.href}`,
'_self',
);
const { issuer } = env.oAuthConfig;
const path = issuer.endsWith('/') ? issuer : `${issuer}/`;
window.open(`${path}Account/Manage?returnUrl=${window.location.href}`, '_self');
};
},
};

Loading…
Cancel
Save