Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | views_data_export-redirect_to_current_path-3333971-2.patch | 3.94 KB | nord102 |
|
Issue fork views_data_export-3333971
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:
Comments
Comment #2
nord102Created a path that adds a Redirect to current path option under the Redirect Settings. This options sets the
$redirect_url
to theHTTP_REFERER
while building the batch, therefore returning the user back to the page they were previously on.Comment #4
DieterHolvoet CreditAttribution: DieterHolvoet at Minsky commentedI cleaned up the redirect fieldset a little bit by adding a Redirect to radio group. I wrote an update hook to migrate existing views.