Token replacement doesn't include user context

Created on 5 June 2023, almost 2 years ago

Problem/Motivation

Following https://www.drupal.org/project/login_destination/issues/3073600 , the module provides a token tree and replaces tokens in the login paths that users are redirected to. While the token tree includes the `user` context, the replacement itself doesn't. Therefore, redirecting to paths like /user/[user:uid]/edit do not work.

Steps to reproduce

* Enable `login_destination`
* Create a login path rule using a user token. E.g. /user/[user:uid]/edit
* Login with an account that triggers the rule
* User is not redirected to /user/[user:uid]/edit

Proposed resolution

Pass the user context to the token replacement.

Remaining tasks

* Create the patch to do so

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom justanothermark

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

Comments & Activities

Production build 0.71.5 2024