When being on the next page of a plp, filtering wont work anymore if there is only 1 page of products left after the filter. Problem is that url parameter "p=2" (2 stands for the pagination) will stay in the url when there is only 1 page left.
Environment
PHP Version: (7.4)
Magento Version: 2.4.2-p1
Tweakwise Version: v3.3.1
Tweakwise Export Version: v.2.1.0
Magento Deploy Mode: production|development
Third party modules: -
Steps to reproduce
Enable Ajax filtering
Go to a PLP with more than 24 products
Go to the next page (page 2)
Use a filter which will result with not having more than 24 products
Actual result
Filtering will not work
Request url to tweakwise will return 0 items because its using page 2 (tn_p1=2 in url), when using tn_p1=1 in the url, it does give the correct items back
Expected result
List the expected results as a bullet list of expectations
[ ] When there is no next page with that filter, return the first page
Issue Brief
When being on the next page of a plp, filtering wont work anymore if there is only 1 page of products left after the filter. Problem is that url parameter "p=2" (2 stands for the pagination) will stay in the url when there is only 1 page left.
Environment
Steps to reproduce
Actual result
tn_p1=2
in url), when usingtn_p1=1
in the url, it does give the correct items backExpected result
List the expected results as a bullet list of expectations