-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Slash the slash #1601
Slash the slash #1601
Conversation
… to any other page than the dashboard is broken. This PR fixes this in the proper way by redirecting from URIs such as "/admin/queries/" to "/admin/queries" which is where the actual scripts are (they'd have to be in "/admin/queries/index.html" otherwise) Signed-off-by: DL6ER <[email protected]>
Testing in a container - it appears the behaviour that was fixed by pi-hole/web#2655 is back Visiting |
Signed-off-by: DL6ER <[email protected]>
Thanks for testing. We accidentally undid the "trick" we applied over there. My latest commit should fix this "once and for all" by handling all cases (ending or not in a slash) properly. Please test again |
This is still the case for me The other issue that I showed in the gif in mattermost earlier, however, is fixed |
@PromoFaux I cannot reproduce this, but it might be a cache issue. Could you try again with another browser or her with the dev tools opened on the networks tab and selected to not load from cache? |
I'm confused now, that is only happen when you manually remove the slash or does it also happen when you do something in the way it should be done? (No doubt we should get the manual removal of the slash fixed as well) |
Seemingly only when I do the manual remove of the slash. Imagine I am authenticated, and then open a new tab and type |
I can confirm, everything works as it should when used as one should use it. However, when I'm loggend in via |
…ages properly Signed-off-by: DL6ER <[email protected]>
It should now be fixed. This last change actually made pi-hole/web#2655 completely redundant, however, it also doesn't hurt to have it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this implement/fix?
As a consequence of pi-hole/web#2655, redirection from the login page to any other page than the dashboard is broken.
This PR fixes this in the proper way by redirecting from URLs with trailing slashes such as
/admin/queries/"
to/admin/queries
which is where the actual scripts are (they'd have to be in/admin/queries/index.html
otherwise)Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.