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

Created on 28 November 2022, over 2 years ago
Updated 6 September 2024, 10 months ago

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.

💬 Support request
Status

Closed: works as designed

Version

11.0 🔥

Component
Language module 

Last updated 4 days ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇫🇷France sjaulin Bordeaux

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.

  • Support requests in Drupal Core are not well attended. Did you figure this out?

  • Status changed to Closed: works as designed 10 months ago
  • 🇳🇿New Zealand quietone

    There has been no response for more information in over a year.

    The Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack . You may get better replies in one of those places.

Production build 0.71.5 2024