1

I'm wondering Like, Is there any way to remove Pagination Page ID from URL?

Like, I moved to the second page or any other page during listing page.

SO URL will be changed as default behavior of Magento as

https://www.example.com/cat-url.html?p=2

How to remove p=2?

Every Suggestions appreciated.

UPDATE

I'm using custom module to load products on category page via Ajax.

https://amasty.com/infinite-scroll-for-magento-2.html

Thanks in Advance.

1

1 Answer 1

1

I would say it would be pain in the ... But one idea came to my mind is it could be done by using ajax. When customer click the link to navigate the next page. Save the number of page in somewhere for example local storage, after that we can fetch data via ajax. Then if we get the correct response, inject that to product list, remove that page in URl, finally updates page number in local storage. I think by doing that you can have the nice url as you wish. But there is quite a lot of work to archive that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.