How To

Add Filters To URL

2min
there are scenarios when it is useful for the user selected filters and/or merchant preset filters to be captured as part of the srlp or category url for example allow for consistent tracking of selected facets reusable 'landing page' links to accomplish this we will add in a custom override module named addfilterstourl that will intercept the outgoing query analyze the existing url string update the localstorage of selected facets apply the necessary filters to the outgoing query update the existing url string see modify request overview docid ndrepmgauhyltilxkg o and modify response overview docid\ k usia fv m380bqcaw7p for details on klevu js overriding template js override add the supporting module, addfilterstourl and apply its use to the page overrides note the example is set for both search ( landing ) and category ( catnav ) scopes full example javascript