0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Updated support email address redirect (#14075)

refs. a488b93465

- Updates redirect to member settings page after changing the support email address
This commit is contained in:
Peter Zimon 2022-01-27 12:43:01 +01:00 committed by GitHub
parent b79ca4188d
commit 5713dfe7f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,13 @@ function createSettingsInstance(config) {
const getAdminRedirectLink = ({type}) => {
const adminUrl = urlUtils.urlFor('admin', true);
return urlUtils.urlJoin(adminUrl, `#/settings/members-email/?${type}=success`);
if (type === 'fromAddressUpdate') {
return urlUtils.urlJoin(adminUrl, `#/settings/members-email/?${type}=success`);
} else if (type === 'supportAddressUpdate') {
return urlUtils.urlJoin(adminUrl, `#/settings/members/?${type}=success`);
} else {
return urlUtils.urlJoin(adminUrl, `#/site/`);
}
};
return {