Score:1

How do I force the language prefix to the current langcode on node with "Not specified" language?

us flag

I have a multilingual site whose default language is Italian. Some of the content has no language defined.

The problem occurs when I browse the site in English. All the links are displayed with the /en prefix, except the links to the untranslated nodes.
In views, the links that are displayed on those nodes don't have a language prefix. As a result, once you arrive on those nodes, the whole site is in the default language because Drupal then redirects to the same content with the prefix /it being the default language.

Is it possible to force a language prefix on these untranslated nodes (with the current language)?

I am using Drupal 9.4.8.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.