We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Grav v1.7.0-rc.14, Query params which are preceded with a '/' will be dropped when Grav redirects to url without '/'.
E.g.: mydomain/typography/?a=b is redirected to mydomain/typography
mydomain/typography/?a=b
mydomain/typography
Problem seems to be caused by Uri::toArray() which doesn't return query_params => $this->queries as part of the Uri parts.
query_params => $this->queries
Adding query_params => $this->queries to the returned array fixes the issue.
The text was updated successfully, but these errors were encountered:
I verify this is a still a bug, introduced in said version, and has still not been fixed. Our plugin generates URLs such as:
http://localhost:8080/admin/powertools/edit-section/?section=hello
and we needed to rework all the code to:
http://localhost:8080/admin/powertools/edit-section?section=hello
Sorry, something went wrong.
Fixed dropped query params when ? is preceded with / [#2964]
?
/
26f4d05
Thanks @mahagr
Fix for subfolder install [#2964]
307ede3
mahagr
No branches or pull requests
In Grav v1.7.0-rc.14, Query params which are preceded with a '/' will be dropped when Grav redirects to url without '/'.
E.g.:
mydomain/typography/?a=b
is redirected tomydomain/typography
Problem seems to be caused by Uri::toArray() which doesn't return
query_params => $this->queries
as part of the Uri parts.Adding
query_params => $this->queries
to the returned array fixes the issue.The text was updated successfully, but these errors were encountered: