Problem/Motivation

A form state object allows to set a redirect destination URL. It would be great being able to set the redirect URL on the form state.

There is already a core action to execute a redirect, but that action is not working with the form state and may not be suitable when the behavior of form submission is required, for example in #3306012: Redirect on login with condition to exclude “?destination=” paths?.

Steps to reproduce

Proposed resolution

Add a new action that allows to set the redirect of a form state.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork eca-3306244

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mxh created an issue. See original summary.

mxh’s picture

Assigned: mxh » Unassigned
Status: Active » Needs review

jurgenhaas’s picture

Status: Needs review » Needs work
mxh’s picture

Status: Needs work » Needs review

  • jurgenhaas committed 86a49c9 on 1.1.x authored by mxh
    Issue #3306244 by mxh: eca_form: Add an action to set a redirect on the...
jurgenhaas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.