Question

I see that in Magento 2 something changed in the way the page behaves when sorting a product list page or when the number of products visible per page is changed.
In Magento 1 there were parameters added to the url for sorting:

http://demo.magentocommerce.com/men/shirts.html?dir=asc&order=price
http://demo.magentocommerce.com/men/shirts.html?dir=asc&limit=24&order=price

but In magento 2 the sorting and page limit is changed via a POST request.
When I was a 'web development' student I learned that all filtering and sorting should be done via GET, for a better user experience.
This way the user can bookmark a list of 'things' already sorted, or share a link with the list filtered and sorted.

Any good reason why this is not used anymore in Magento 2? And is it worth sacrificing a bit of the customer experience for what ever reason that might be?

Was it helpful?

Solution

Request arguments are cut to avoid possible DOS attacks. So filter modifications are made with POST.

But I really think that you should create a ticket on github to fix this.

OTHER TIPS

I learned that all filtering and sorting should be done via GET, for a better user experience.

You learned wrong first of all. there is not relation with Get method to sorting for good performance. Post decrease the chances of hack.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top