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'
|
method: 'DELETE'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
window.location.reload();
|
window.location.replace(siteUrl);
|
||||||
} else {
|
} else {
|
||||||
el.addEventListener('click', clickHandler);
|
el.addEventListener('click', clickHandler);
|
||||||
el.classList.remove('loading');
|
el.classList.remove('loading');
|
||||||
|
@ -117,7 +117,7 @@ function setupGhostApi({siteUrl = window.location.origin}) {
|
|||||||
method: 'DELETE'
|
method: 'DELETE'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
window.location.reload();
|
window.location.replace(siteUrl);
|
||||||
return 'Success';
|
return 'Success';
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Failed to signout');
|
throw new Error('Failed to signout');
|
||||||
|
Loading…
Reference in New Issue
Block a user