Category search and pagination URL conflict
Hey Low,
Similar to this thread, I'm having issues with pagination urls and search results: https://getsatisfaction.com/low/topic...
I have a multi-faceted search going with categories, so my search result page looks like: somesite.com/resources?category=14
When there are results with pagination, the URL ends up as: somesite.com/resources?category=14main/P75
http://pastebin.com/GQUuxvfw
I'm running EE 2.7.2, Low Search 3.0.3. Encode query is turned off.
Replies
Garabedium 1 Jul 2014 03:31
Also, if I construct the URL manually like so:
somesite.com/resources/main/P50/?category=14 - the pagination works as expected. I'm just unable to get that URL structure going in the code.
Low 1 Jul 2014 06:36
Can you try upgrading to the latest version (v3.1.6) and see if the issue persists?
Garabedium 1 Jul 2014 11:06
Yup, upgraded to latest version. Instead of showing the broken search query (?category=14main/P75), it just shows the normal pagination with no search query (resources/main/P50). So the search results don't get properly paginated.
As a superadmin, I'm also seeing a php error with the upgrade:
Message: is_dir(): open_basedir restriction in effect.
Filename: libraries/Low_search_filters.php
Line Number: 235
Low 1 Jul 2014 11:15
Hmm. That php error can be solved by opening up /low_search/libraries/Low_search_filters.php and changing like 235 to this:
If you change the pagination links to this:
...the query string should be maintained.
Garabedium 1 Jul 2014 12:56
Ahh, brilliant on both accounts, thank you :)
I had tried something similar with the pagination url but it didn't work properly.
Thank you for the quick help! I really really appreciate it!