mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
Redirected to home page on signout
no issue Handles Portal or theme to redirect to home page for a site when signing out
This commit is contained in:
parent
41f171838a
commit
168fb204eb
@ -205,7 +205,7 @@ function handleDataAttributes({siteUrl}) {
|
||||
method: 'DELETE'
|
||||
}).then(function (res) {
|
||||
if (res.ok) {
|
||||
window.location.reload();
|
||||
window.location.replace(siteUrl);
|
||||
} else {
|
||||
el.addEventListener('click', clickHandler);
|
||||
el.classList.remove('loading');
|
||||
|
@ -117,7 +117,7 @@ function setupGhostApi({siteUrl = window.location.origin}) {
|
||||
method: 'DELETE'
|
||||
}).then(function (res) {
|
||||
if (res.ok) {
|
||||
window.location.reload();
|
||||
window.location.replace(siteUrl);
|
||||
return 'Success';
|
||||
} else {
|
||||
throw new Error('Failed to signout');
|
||||
|
Loading…
Reference in New Issue
Block a user