0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

🐛 Fixed Admin redirect for newsletter/support email update (#12810)

closes https://github.com/TryGhost/Team/issues/570

When site owner/admin updates their newsletter/support email address from settings, they receive an email with confirmation link which on success takes them to Ghost Admin on email settings screen with a toast about success. Since the path for email settings in Ghost Admin changed in v4, the fix updates the redirect link to new Admin settings URL.
This commit is contained in:
Rishabh Garg 2021-03-23 11:24:07 +05:30 committed by GitHub
parent 81a54a70bc
commit 738c8ac70d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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