title | issue |
---|---|
Storefront pagination and filter are not working when pressing back browser |
NEXT-13189 |
- Changed method
setValuesFromUrl
insrc/Storefront/Resources/app/storefront/src/plugin/listing/filter-multi-select.plugin.js
to remove the checked filter when going back from the browser. - Added method
setValuesFromUrl
insrc/Storefront/Resources/app/storefront/src/plugin/listing/listing-pagination.plugin.js
to update the page param when going back from the browser. - Added a new parameter
pushHistory
(default true) of methodchangeListing
insrc/Storefront/Resources/app/storefront/src/plugin/listing/listing.plugin.js
to optionally do not push state into the browser's history when going back from the browser. - Added a new parameter
overrideParams
of methodchangeListing
insrc/Storefront/Resources/app/storefront/src/plugin/listing/listing.plugin.js
to optionally override the request parameters from filter plugins. - Added
window.onpopstate
event listener when initializingListingPlugin
to refresh the listing plugin and filter plugins when going back from the browser.