Create a new OpenModalDialogWithUrl command

Created on 14 December 2023, over 1 year ago
Updated 3 April 2024, about 1 year ago

Problem/Motivation

\Drupal\Core\Ajax\RedirectCommand allows redirecting users to a different route after processing form. However, there isn't currently a way to render a different dialog after processing a form. This is needed in some multi-step forms that are using dialogs where the system needs to take the users to a controller or a form behind another route. This is critical in particular when working with forms because form API always depends on the current route match to be up to date to know which route to submit the form.

One existing use-case for this is โœจ Use modal in add new field flow Active .

Steps to reproduce

Proposed resolution

Create a command that replicates the functionality of the \Drupal\Core\Ajax\RedirectCommand but operates within dialogs.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.3 โœจ

Component
Ajaxย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia srishtiiee

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024