Problem/Motivation

The "Clear Facet Filters" block only renders when the facet source uses the Pretty Paths URL processor. When switched to the default Query String processor, the block returns empty and the "Clear filter(s)" link never appears — even when facets are actively applied.

Steps to reproduce

Add the "Clear Facet Filters" block to a Site Studio view page.
Configure the facet source to use the Query String URL processor (default).
Apply any facet filter on the search page.
Observe that the "Clear filter(s)" link does not appear.

Proposed resolution

Extend the block's build() method to detect the f query parameter used by the Query String processor, and render a clear link that strips the f parameter while preserving other query params (e.g. keywords).

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rohan-sinha created an issue. See original summary.

rohan-sinha’s picture

Status: Active » Needs review

rajeshreeputra’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.