Skip to content

ACMS-6125:Clear Facet Filters block not rendering in Query String URL…#1986

Open
rohansinhadev wants to merge 2 commits into
developfrom
ACMS-6125
Open

ACMS-6125:Clear Facet Filters block not rendering in Query String URL…#1986
rohansinhadev wants to merge 2 commits into
developfrom
ACMS-6125

Conversation

@rohansinhadev

Copy link
Copy Markdown
Contributor

… processor mode

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.

Fixes #NNN

Proposed changes

Alternatives considered

Testing steps

Add the "Clear Facet Filters" block to a Site Studio View and keep Query String processor in facets, the Clear Facet Filters will work after these changes.

Merge requirements

  • Major change, Minor change, Bug, Enhancement, and/or Chore label applied
  • Manual testing by a reviewer

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the “Clear Facet Filters” block so it renders a “Clear filter(s)” link when facets are using the Query String URL processor (not only Pretty Paths), aligning behavior across facet URL processor modes.

Changes:

  • Treat Pretty Paths as facets encoded in the facets_query route parameter and generate a clear link accordingly.
  • Add Query String handling by detecting the f query parameter and generating a clear link with f removed from the query string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/acquia_cms_search/src/Plugin/Block/ClearFacetFilters.php
Comment thread modules/acquia_cms_search/src/Plugin/Block/ClearFacetFilters.php

@rajeshreeputra rajeshreeputra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants