_wrapper_format=drupal_ajax is always added, instead of updated when the param is already available

Created on 5 June 2023, about 1 year ago
Updated 29 March 2024, 3 months ago

Problem/Motivation

When Drupal detects Ajax in the page, the Ajax object is created and adds the '_wrapper_format=drupal_ajax' parameter to the urls.
The problem is that when you have embedded an ajax-enabled (web)form to a page, in some cases the '_wrapper_format=html' parameter was already added. This causes to have 2 times the same '_wrapper_format' in the POST url query. Depending you use apache or nginx, one of the 2 is removed..

Proposed resolution

First detect if the url already has this param. If so update it rather then adding it again.

My apologies if a related ticket already exists, then I will have missed it.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
AjaxΒ  β†’

Last updated about 9 hours ago

Created by

πŸ‡§πŸ‡ͺBelgium Tim Lammar

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024