Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda