Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
How to prevent InfiniteScroll changing queryparams in URL

I am using Infinite Scroll from Metafizzy on a page which consists of images and are filtered using dropdowns. The JS for Infinite Scrolls is the following. The infinite scrolling works as expected

if (document.querySelector('.pagination__next')) {
    let infScroll = new InfiniteScroll('.article-feed', {
        path: '.pagination__next',
        append: '.article',
        hideNav: '.pagination'
    });
}

By default, after clicking on any of these filters I get the following queryparams in my URL:

?sort=date&collection=&bids=&search=

However as I continue to scroll down and the next page is loaded, my queryparams change to the following:

?page=1&sort=date

How can i ensure the same queryparams are shown, and only the page is changed? The only time I want the queryparams to change is when the user interacts with the filters mentioned.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!