Facets form block caches URL arguments

Created on 14 December 2021, almost 3 years ago
Updated 3 February 2023, almost 2 years ago

Problem/Motivation

In the parent issue fix the non-facets query params in URL were preserved. However, the facets form block is caching the URL of the Clear button.

Steps to reproduce

Go to a search page with facets form with Anonymous user and caches enabled.
Load the page with a random query param.
Check the clear button URL.
Load the page with a different query param.
Check the clear button URL. It still has the first query param.

Proposed resolution

Apply the 'url.query_args' cache context to the facets form block.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium keszthelyi Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024