ajax_page_state query params in facets_summary reset string link

Created on 3 April 2024, 3 months ago
Updated 9 April 2024, 3 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.69.0 2024