ajax_page_state query params in facets_summary reset string link

Created on 3 April 2024, 8 months ago
Updated 9 April 2024, 7 months ago

Problem/Motivation

I am getting a problem similar to 🐛 Ajax state leaking to Views destination paths Fixed .
Since we upgrade to Drupal 10.1, our facet reset link contains a lot AJAX GET parameters:
/subsidies-financiering/subsidiedatabank/zoek?ajax_page_state%5Blibraries%5D=xxx

Steps to reproduce

Add facets and a facet summary block with a reset link on a view with AJAX.
Select a facet.
The reset link appear but has ajax_page_state query parameters.

Proposed resolution

The easiest way to avoid this would probably be to unset ajax_page_state before passing the parameters to the link (similar to this fix: https://git.drupalcode.org/project/drupal/-/commit/7b0afe899f3ca30ecf6fc...).

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium p-neyens

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024