Incorrect Redirect Success URL generated on multilingual site with translated custom controller

Created on 25 September 2024, about 2 months ago

Problem/Motivation

The redirect URL being generated has the URL path in the wrong language when setting the success redirect URL to a custom controller path that has an URL alias for an alternative language.

I assume this is due to the fact the URL is being generated during the request to the alternative language domain.

Steps to reproduce

- Add a language to the Drupal site and set the interface text language detection to URL.
- Set the URL source to domain and set up two different language domains for the given language.
- Add those two language domains to multi_domain_login configuration.
- Create a custom route and add an url alias for that route in the alternative language.
- Set that custom route path as the successful redirect url.
- Login and be redirected to the original domain, but with the alternative language path.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Shamrockonov

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