Ajax state leaking to Views destination paths

Created on 1 June 2023, over 1 year ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

📌 Allow AJAX to use GET requests Fixed caused a regression that leaks the ajax_page_state query paramater into the redirect destination URLs generated by Views.

Steps to reproduce

  1. Install Drupal 11.x with standard profile
  2. Enable ajax on the /admin/content view
  3. Create one article node
  4. Visit /admin/content and apply a filter (e.g. Type = Article)
  5. Delete the article

This redirects to which breaks rendering because of the ajax_page_state:

/admin/content?title=&type=article&status=All&langcode=All&ajax_page_state[theme]=claro&ajax_page_state[theme_token]=OUqFxWhAOwXtkRPcSAdL4jbOuw8Cz4O-QlNSqWuM82c&ajax_page_state[libraries]=big_pipe/big_pipe%2Cclaro/drupal.nav-tabs%2Cclaro/global-styling%2Ccontextual/drupal.contextual-links%2Ccontextual/drupal.contextual-toolbar%2Ccore/drupal.active-link%2Ccore/drupal.dropbutton%2Ccore/drupal.tableheader%2Ccore/drupal.tableresponsive%2Ccore/drupal.tableselect%2Ccore/normalize%2Cshortcut/drupal.shortcut%2Csystem/admin%2Csystem/base%2Ctoolbar/toolbar%2Ctoolbar/toolbar.escapeAdmin%2Ctour/tour%2Cuser/drupal.user.icons%2Cviews/views.ajax%2Cviews/views.module

Proposed resolution

Fix it.

🐛 Bug report
Status

Fixed

Version

10.1

Component
Views 

Last updated 2 days ago

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Production build 0.71.5 2024