Issue Bug Closed

#92553Redirects Module with domains for each language

Markus Gehrig 10/13/20, 15:35 updated 11/06/26, 09:38

Description

Hey there

We have a system which has a separate domain for each language.

  • DE => german_domain.ch
  • FR => french_domain.ch
  • EN => englisch_domain.ch

Most of the time this works great in most circumstances, but when it comes to the redirects things are not working as they should. At the moment we can’t redirect a url with a foreign language.

french_domain.ch/test leads to the site in the default language, but not to the page in French as we would expect it.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 8

  1. Guido Schmechel commented <span data-processor="relativetime" data-value="2021-01-09T18:56:25+00:00" > 01/09/21, 18:56 </span>

    Hi, how have you configured the redirects?

    I have set the following for testing:
    - I have configured two domains in ddev
    - Page A (source) is a simple redirect to Page B (target)
    - Page A (source) mapped to my danish domain
    - Page B is a redirect in this form: “t3://page?uid=1 – - – &L=1”

    In order for L=1 to be used, I have to switch on the option “Keep GET Parameters”.

    After that, the redirect ran successfully. Does that help you?

    I admit: rather suboptimal from a UX point of view, but you get there. Perhaps more detailed documentation would help here?

  2. Mathias Brodala commented <span data-processor="relativetime" data-value="2025-02-10T12:37:37+00:00" > 02/10/25, 12:37 </span>

    In related tickets https://packagist.org/packages/b13/link2language was mentioned as a GUI way to select the redirect target language.

  3. Mathias Brodala commented <span data-processor="relativetime" data-value="2025-02-10T12:41:01+00:00" > 02/10/25, 12:41 </span>

    Notice that this ticket slightly differs from the related tickets. The language is set using the domain/host and one would expect it to be kept for redirects.

  4. Benni Mack commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-06T09:38:19+00:00" > 11/06/26, 09:38 </span>

    On current main (and 13.4/12.4), redirects whose target is a page keep the site language that was resolved from the request’s domain or language prefix. The link to the target page is built for the current language, so french_domain.ch/test redirects to the French translation of the target page. No &L= parameter or “Keep GET Parameters” is needed anymore. This is covered by functional tests added with #105987 (RedirectServiceTest::redirectRespectingMatchedSiteLanguageWhenTargetPageHasSameSiteRootReturnsExpectedRedirect). Closing, please reopen if you can still reproduce this on a supported version.
    Related tickets are still valid.