-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Fix 404 error when URLs have both ending slash and query parameters #3494
Conversation
I guess this is fine, and was about to commit this myself earlier, but it bugs me that we do basically the same thing a few lines earlier. |
Huh, that's a good point. Just pushed up a change to get rid of my new code and just update what's already there. |
Nevermind, that seemed to break things, both on my test site and on GH Actions. If you can think of a better/cleaner way, feel free to update this PR/close and commit. |
I'm working on this now so you don't need to do anything, but just an FYI, the test you added already passed before any changes were made. |
Sorry I take that back. It failed on earlier versions of Laravel. 👍 Don't mind me. 🤐 |
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.
I added tests that cover the original reason that str_finish line and condition were added (other code has been added since then in other spots that makes it work now) and cleaned it up a bit.
This PR fixes #3469, where you visiting a page with a URL like this would simply 404,
/about/?ref=smth
.