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

404 error in admin panel when logging in with deep link #1456

Closed
TomOne opened this issue May 31, 2018 · 1 comment
Closed

404 error in admin panel when logging in with deep link #1456

TomOne opened this issue May 31, 2018 · 1 comment

Comments

@TomOne
Copy link
Contributor

TomOne commented May 31, 2018

When I’m logged out of the admin panel and try to access it with a deep link (e.g. https://my-grav-site.com/admin/config/system instead of https://my-grav-site.com/admin), a 404 error appears after the login.

Reproducible example:

  1. Make sure you’re logged out of the admin panel.
  2. Open https://my-grav-site.com/admin/config/system in the browser.
  3. log in
  4. After the login, the admin panel redirects to /admin/system (stripping out /config/), leading to a 404 error.

This happens with other URLs too, e.g. https://my-grav-site.com/admin/pages/home, redirecting to /admin/home (stripping out /pages/). It seems to always remove the path segment that comes after /admin and makes a 303 redirect to that URL, potentially producing a 404.

My environment where this issue appears: fresh Grav 1.4.5 installation with Admin 1.8.2 and Login 2.7.0 on Debian 9, PHP 7.2 and Apache 2.4

@rhukster
Copy link
Member

rhukster commented Jun 8, 2018

sorted for next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants