Save button redirect

Created on 30 October 2021, about 3 years ago
Updated 22 June 2023, over 1 year ago

Problem/Motivation

Wondering if it's possible to setup a redirect to another url upon clicking the save button. Any tips on doing so?

Thanks!

πŸ’¬ Support request
Status

Fixed

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States chucksimply

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Hello, you can use link with destination argument as follow:

    a class="button" href="/your_view_patch_on_page/{{ raw_arguments.nid }}&edit?destination=/node/{{ raw_arguments.nid }}">Open Form Mode

    IF you are using field groups and want to return to exact tab you can add: %23edit-group-YOUR_GROUP_NAME

    a class="button" href="/your_view_patch_on_page/{{ raw_arguments.nid }}&edit?destination=/node/{{ raw_arguments.nid }}}%23edit-group-active-status">Open Form Mode

    This will open your tab with your view (your_view_patch_on_page) but in link you will be able to see destination. I have used Contextual filters for ID and button style, but of course you can use it as :

    a href="/your_view_patch_on_page/&edit?destination=/node/10%23edit-group-active-status">Open Form Mode

  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024