Improve URL Handling for Form Submissions with Excluded Query Parameters

Created on 20 January 2025, 10 days ago

Problem/Motivation

Proposed resolution

  • Updates Drupal.Ajax.prototype.beforeSerialize to handle AJAX-enabled form submissions by processing serialized form data (element.serialize()) instead of only handling links ( elements).
  • Introduces an updatedUrl property in the options object to allow URL modifications in beforeSerialize and reuse it in beforeSubmit.
  • Ensures that both link clicks and form submissions are handled consistently, providing improved compatibility with drupalSettings.viewsAjaxHistory.excludeArgs.
🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇮🇳India manthan.chauhan

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

Comments & Activities

Production build 0.71.5 2024