Aliases created on the URL aliases page show the language none as soon a second language is added

Created on 1 April 2024, 5 months ago

Problem/Motivation

While testing Path alias filter by system path Needs work I've noticed if you create an URL alias on /admin/config/search/path/add for an already existing node on a site that has installed only a single language and you install the language module afterwards adding a second language you will end up with with None entries in the language column on /admin/config/search/path for those nodes.

Steps to reproduce

Node:

  • Install Drupal 11.x-dev with the standard profile and english as the sole language
  • Create a node/node/add/article and add title cat add /cat in the url alias section in the advanced column and save
  • Create a node /node/add/article and add title apple and /apple in the url alias section in the advanced column and save
  • Install the Language and the Content Translation module
  • Add a second language on /admin/config/regional/language
  • Go to /admin/config/search/path

=> The entries in the language column show English

URL alias

  • Install Drupal 11.x-dev with the standard profile and english as the sole language
  • Create a node/node/add/article and add title cat and save. Is node 1
  • Create a node /node/add/article and add title apple and save. Is node 2
  • Create an URL alias /admin/config/search/path/add, use /node/1 for the system path and cat for the URL alias
  • Create an URL alias /admin/config/search/path/add, use /node/2 for the system path and apple for the URL alias
  • Install the Language and the Content Translation module
  • Add a second language on /admin/config/regional/language
  • Go to /admin/config/search/path

=> The entries in the language column show None

Proposed resolution

The case outlined for URL alias in the steps to reproduce section should behave like the Node case and also end up showing the language the node was created in instead of showing None

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Language system 

Last updated 1 day ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇩🇪Germany rkoller Nürnberg, Germany

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

Comments & Activities

Production build 0.71.5 2024