Clear all facets (but retain the selected tab value)

I couldn’t spot a function for this.

The problem is to have a button within each tab that clears the facets but retains the selected tab

All I can see in the documentation is

href="${response.facetExtras.unselectAllFacetsUrl}"

which clears all the facets INCLUDING the tabs

or

href="${facet.unselectAllUrl}"

that just clears facet options within a particular facet

Just wondered if there was a neat way to do this rather than manually constructing the links.

Hi drk4,

Good question. Currently, there doesn’t seem to be an quick way to get the URL required for a clear all selected facets (except for tabs). Unfortunately, in this case, you will need to generate the URL manually.

I will raise a feature request to get something added to the product in future releases.

Thanks,

~Gioan