Problem/Motivation

Currently the Redirect Settings options are:

  • Custom redirect path
  • Redirect to this display

But there are use cases in which you may not have a specific redirect path that you want the user to end up on and you want to just return the user to the page they were on.

Proposed resolution

Add an option to the Redirect Settings for Redirect to current path that, when checked, will redirect the user back to the page they were on.

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

nord102 created an issue. See original summary.

nord102’s picture

Created a path that adds a Redirect to current path option under the Redirect Settings. This options sets the $redirect_url to the HTTP_REFERER while building the batch, therefore returning the user back to the page they were previously on.

DieterHolvoet made their first commit to this issue’s fork.

DieterHolvoet’s picture

I cleaned up the redirect fieldset a little bit by adding a Redirect to radio group. I wrote an update hook to migrate existing views.