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

Fixed getLocalizedURL producing duplicate query string #671

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

ClementVH
Copy link
Contributor

Hello there, first pull request for me on this project

I have a bug on production with your package.
I have an non-translated route where I use the middleware 'LocaleSessionRedirect'.
'LocaleSessionRedirect' uses the 'getLocalizedURL' method which produce an url with a duplicate query string.

In my opinion the query string should be removed from the variable '$url' even when is is empty to begin with

I added the tests along the patch. ( the test wasn't passing before the patch )

Happens for non translated routes
@iwasherefirst2
Copy link
Collaborator

iwasherefirst2 commented Oct 17, 2019

Thanky you! Great that you also added the test, we strongly need more code coverage. This PR fixes #670

@mcamara
Copy link
Owner

mcamara commented Oct 17, 2019

Awesome! Thanks, it will be released soon!

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.

3 participants