All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Category search and pagination URL conflict

Garabedium 1 Jul 2014 02:44 problem, complete

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

  1. 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.

  2. Low 1 Jul 2014 06:36

    Can you try upgrading to the latest version (v3.1.6) and see if the issue persists?

  3. 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

  4. 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 (@is_dir($dir))


    If you change the pagination links to this:

    <a href="{pagination_url}{low_search_query_string}">


    ...the query string should be maintained.

  5. 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!