Infinite Scroll loses filter parameters on pagination after selecting filter

This topic has 3 replies, 2 voices, and was last updated 4 months ago ago by MAHDAR

  • Avatar: mahdar
    MAHDAR
    Participant
    August 11, 2025 at 02:07

    Hello,

    I am using XStore theme together with the Filter Everything plugin.
    When I start from the main shop page /sale/, select a filter (for example Anzüge), the URL updates correctly to something like:

    /sale/?ca=anzuege
    However, when I scroll down and the infinite scroll loads page 2, the URL changes to:

    /sale/page/2/
    and the filter parameter (?ca=anzuege) is lost. This causes the products on page 2 (and further) to be unfiltered.

    If I directly open the filtered URL /sale/?ca=anzuege and scroll, it works fine — the problem only happens when the filter is applied dynamically from the /sale/ page without parameters.

    It seems the infinite scroll script replaces the browser URL with history.replaceState but does not preserve existing query parameters after filtering. Could you please fix this so that the query string is kept in all pagination URLs generated by the infinite scroll, even when the filter is applied dynamically?

    Thank you!

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 11, 2025 at 08:28

    Hello @MAHDAR,

    We kindly recommend that you try the solution provided in the following response:
    https://www.8theme.com/topic/woocommerce-woocommerce-infinite-scroll-and-ajax-pagination-and-shop-page-is-not-working-properly/#post-434076

    Please implement the suggested steps and check the results on your website.

    Best regards,
    The 8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    August 11, 2025 at 11:20

    Thanks for the support! My topic “Infinite Scroll loses filter parameters on pagination after selecting filter” has been successfully resolved.

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Infinite Scroll loses filter parameters on pagination after selecting filter’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.