Skip to content

[12.x] Uri prevent empty query string #55146

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

Merged

Conversation

rojtjo
Copy link
Contributor

@rojtjo rojtjo commented Mar 24, 2025

Currently it seems to be impossible to completely remove a query string from a URI. The league/uri package requires us to pass in null if we want it removed, but since Arr::query([]) returns an empty string when an empty array is passed we end up with a URI such as https://laravel.com?.

Since this might be considered a breaking change we might want to target master instead.

Let me know!

rojtjo added 2 commits March 24, 2025 02:15
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@rojtjo rojtjo marked this pull request as ready for review March 24, 2025 01:20
@taylorotwell taylorotwell merged commit 1e1ed42 into laravel:12.x Mar 24, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants