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

Add params, query and fragment when redirecting to a language or default route #759

Merged
merged 1 commit into from
Apr 6, 2016

Conversation

flaviocopes
Copy link
Contributor

Fix an issue in the Grav lang redirect. E.g. I call /order/id:order-20160320-202557-668641/token:2mgb4D27S3, if multilang is ON, and the lang is prefixed, Grav loads the page /en/order/, losing all the parameters and additional URL segments

@rhukster rhukster merged commit 33d69d7 into develop Apr 6, 2016
@rhukster
Copy link
Member

rhukster commented Apr 6, 2016

One thing we could do to optimize. Rather than check if $url == '/' just ltrim($url, '/')

@flaviocopes flaviocopes deleted the feature/fix-redirect branch October 5, 2016 12:57
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.

2 participants