Closed Grinnz closed 6 years ago
the previous attempt was using '| uri' filter inline which was not working as expected, switching to use URL plugin should solve this issue
The "recent searches" link still has the issue.
This looks fixed now. Thanks!
Context
When doing a search like:
https://grep.metacpan.org/search?q=%3Dhead1%26&qd=&qft=
or
https://grep.metacpan.org/search?q=%3Dhead1&qd=&qft=
The pages and recent searches links contain the search unencoded, like:
https://grep.metacpan.org/search?q==head1&
or
https://grep.metacpan.org/search?p=2&qd=&qft=&qci=&q==head1&qls=
Which obviously will not work correctly.
Process
Expected result
Successful navigation
Current result
Incorrect urls
Possible Fix
Search query components should be URL encoded when attaching them to the URL. This should be automatically done by using any URL library to add query parameters.