Generated URL language prefix mismatch causes infinite redirect loop

Created on 15 May 2022, over 2 years ago
Updated 14 August 2023, over 1 year ago

Problem/Motivation

When requiring a user to modify their password, they get stuck in an infinite redirect loop.
The infinite redirect loop is caused by a mismatch in ForcePasswordChangeEventSubscriber.php:117. The generated URL's contain a language prefix (EN), while the current path service returns the path without language prefix.

Proposed resolution

Instead of generating the URL from a route and comparing it to a path, chech the current route directly.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇧🇪Belgium Nick Dewitte

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024