ajax_page_state added to links in AJAX view

Created on 3 May 2023, over 1 year ago
Updated 7 November 2023, about 1 year ago

Problem/Motivation

In 10.1.0-alpha1, when enabling AJAX on a view, it adds ajax_page_state GET parameters to pager links.
The parameters appear after the first AJAX request.

Steps to reproduce

  1. Go to https://master-rv1x5j2rqmeay3sxncndouqkr9zns6f6.tugboatqa.com/admin/content
  2. Click on a pager link to trigger an AJAX request.
  3. Now, pager links have additional AJAX GET parameters.

Proposed resolution

Before πŸ“Œ Allow AJAX to use GET requests Fixed , we used to have unset($request_all['ajax_page_state']); in ViewAjaxController::ajaxView() but this was removed for some reason.
I think ajax_page_state should now be removed from both GET params before building the URL.

πŸ› Bug report
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
AjaxΒ  β†’

Last updated 1 day ago

Created by

πŸ‡«πŸ‡·France prudloff Lille

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