Translation links and/or language switcher don't work as expected

Created on 7 April 2025, 6 days ago

I have two domains, say www.example.com for English and www.example.nl for Dutch. When a user logs in to one of these domains, I want them to stay on that domain to administer and translate content.

On the Language Detection and selection page, I have Interface text language detection set to URL with the domains configured as described above and "Content language detection" disabled.

The issue now is that the translation links on (for example) /node/1/translate will point to the other domains, resulting in requiring unwanted additional logins for each domain.

When I do enable the option "Content language" under "Content language detection" the links on the translation overview page will appear as www.example.com/node/59/edit?language_content_entity=en (which is ok) but the language switcher nows show every link (except the frontpage) as www.example.com/page?language_content_entity=nl instead of showing the available translated page (i.e. www.example.com/pagina).

This might to be related to https://www.drupal.org/project/drupal/issues/1810394 and/or https://www.drupal.org/project/drupal/issues/2864055 🐛 LanguageNegotiationContentEntity: don't break interface language switcher links Needs work but I'm not sure it's the same problem and both issues have no working patches for 11.1.3.

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

content_translation.module

Created by

🇳🇱Netherlands markwittens

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

Comments & Activities

Production build 0.71.5 2024