Destination parameter not respected on login

Created on 25 August 2025, 4 days ago

Problem/Motivation

When TFA features are enabled and the “Users optionally can enable” pathway is selected, users without TFA enabled are not redirected to the specified destination after login when a destination parameter is present in the path.

Steps to reproduce

1. Set TFA features as Active and select “Users optionally can enable” as the default pathway.
2. Log in with a user who does not have Email TFA enabled on their account.
Example: Log in with /user/login?destination=/admin/config/people/email-tfa
3. The user is not redirected to the destination path after login.

Proposed resolution

Ensure the destination parameter from the request query is reapplied when falling back to the default login process.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024