Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Logout redirection] Logout after first admin registration redirects you to admin registration page instead of login page #20523

Open
MarionLemaire opened this issue Jun 14, 2024 · 0 comments
Labels
version: 4 Issue related to v4

Comments

@MarionLemaire
Copy link
Contributor

Bug report

Required System information

Node.js version: v20.9.0
Strapi version: 4.24.6 , and 4.24.5 and probably previous versions
Operating system: Windows WSL and OS

Describe the bug

After first admin registration, when you logout, you're redirected to the admin registration page (it should bring to the login page). When you refresh page, you're finally in the login page.

Steps to reproduce the behavior

  1. Register with a new profile
  2. After reaching main page, Logout
  3. Check the page you're redirected : >> Redirection is made to http://localhost:1337/admin/auth/register-admin at first logout instead of http://localhost:1337/admin/auth/login

Expected behavior

Redirection should be to http://localhost:1337/admin/auth/login after first logout.

Screenshots

https://app.dashcam.io/replay/665ed3f1fb6720006f752bce?share=jRKtyqNfukBJy4mXepsxyw

@MarionLemaire MarionLemaire added the version: 4 Issue related to v4 label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: 4 Issue related to v4
Projects
Status: To review
Development

No branches or pull requests

1 participant