Add token support for Redirect url field

Created on 5 May 2022, over 2 years ago
Updated 1 February 2023, almost 2 years ago

Right now, we can not add tokens in Redirect url field and because of this we cannot have dynamic url.

Steps to Reproduce

  • Go to add/edit node
  • Configure URL redirect section
  • Add redirect url in To field with Tokens
  • Tokens won't get replaced

Proposed Solution

We can inject Token service to RedirectPageByRoleController.php to replace token for To redirect url field

Feature request
Status

Needs review

Version

3.1

Component

Code

Created by

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.

  • First commit to issue fork.
  • @taraskorpach opened merge request.
  • Status changed to Needs review almost 2 years ago
  • 🇺🇦Ukraine taraskorpach Lutsk 🇺🇦

    Hi @brunoalmeida! I've fixed the Drupal and DrupalPractice standards you mentioned, as well as a few things of my own. I've added a "View available tokens" link to the form to improve the user experience. If you have any questions or comments, feel free to write!

  • Assigned to brunoalmeida
Production build 0.71.5 2024