Avoid redirections out of the 2FA page
What does this MR do and why?
Avoid redirections out of the 2FA page
When passkeys feature flag is enabled, all redirections should be within the 2FA. The reason is that the updated page indicates when the user has 2FA enabled. Before, that indicator was in the profile page.
References
Relates #581674 (comment 2918578551)
Closes #393750 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
| Screen_Recording_2025-11-27_at_17.00.29 | Screen_Recording_2025-12-02_at_11.55.43 |
How to set up and validate locally
No changes (user navigates to the account page)
- Go to https://gdk.test:3443/-/profile/two_factor_auth
- Enable the first 2FA method.
- Click on
Copy codesandProceedbuttons. - The user should land in https://gdk.test:3443/-/profile/account
User stays in the 2FA page
Now enables this flag, https://gdk.test:3443/rails/features/passkeys, and repeat the process above. The user should land in https://gdk.test:3443/-/profile/two_factor_auth (2FA page)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Eduardo Sanz García