Logging out of Netlify CMS requires doing so twice
Describe the bug The logout button returns the user to the CMS, and only returns them to the login page after the second use.
To Reproduce
- Click Logout in Netlify CMS
Expected behavior The user should be logged out and land on the Login page.
Screenshots Video of issue at https://www.dropbox.com/s/nx9uggwjahzokrk/logout.mp4?dl=0
Applicable Versions:
netlify-cms-app 2.15.72 netlify-cms-core 2.55.2 netlify-cms 2.10.192 Github macOS Chrome 108.0.5359.94 && Firefox 107.0.1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
0 response from maintainers doesn't consitute a non-issue.
@benseven please share your backend config. I don't see this issue with Github / Netlify Identity. And please test with Decap 3
Hi, I am having this issue using Decap 3 and GitLab / Netlify Identity
There is a workaround that worked for me. Use the next code in the body of admin/index.html:
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("logout", () => {
window.location.replace("/admin")
});
}
</script>