decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Logging out of Netlify CMS requires doing so twice

Open benseven opened this issue 3 years ago • 5 comments

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

  1. 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

benseven avatar Dec 12 '22 11:12 benseven

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.

stale[bot] avatar Apr 26 '23 10:04 stale[bot]

0 response from maintainers doesn't consitute a non-issue.

benseven avatar Apr 26 '23 10:04 benseven

@benseven please share your backend config. I don't see this issue with Github / Netlify Identity. And please test with Decap 3

martinjagodic avatar Aug 25 '23 09:08 martinjagodic

Hi, I am having this issue using Decap 3 and GitLab / Netlify Identity

martinezedgar avatar Mar 19 '24 19:03 martinezedgar

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>

martinezedgar avatar Mar 19 '24 21:03 martinezedgar