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:
parent
b79ca4188d
commit
5713dfe7f7
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue