Generated URL language prefix mismatch causes infinite redirect loop

Created on 15 May 2022, about 2 years ago
Updated 14 August 2023, 10 months 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

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.69.0 2024