Wrong link to taxonomy term where name is not translatable

Created on 20 December 2024, about 1 month ago

Problem/Motivation

When the name of taxonomy terms is set to not translatable, the URL link to the taxonomy term is wrong, it is always in the default language.

Steps to reproduce

A multilanguage site.
Set the name in a taxonomy vocabulary as not translatable.
Create a term T1 in default language.
Translate T1 in the secondary language.
Create a view of terms where the term name has a link to the term itself:
- T1 in default language has a link like /taxonomy/term/1 (OK)
- T1 in secondary language has the same link, instead of //term/1", that points to the correct page where the term has the fixed name but other fields of the term can be translated.

Proposed resolution

Fix, I don't know if it's an issue of taxonomy or drupal language

Remaining tasks

Test

User interface changes

No

Introduced terminology

No

API changes

No

Data model changes

No

Release notes snippet

N/A

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

taxonomy.module

Created by

🇮🇹Italy giuse69

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

Comments & Activities

  • Issue created by @giuse69
  • 🇳🇿New Zealand quietone

    Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies .

  • First commit to issue fork.
  • 🇮🇳India ramprassad

    There is no option to set the name as not translatable as this is a core field in taxonomy. If you do not want the name as translatable, you need to remove the translation in the Vocabulary edit page in which case the vocabulary itself will not be translatable.

  • 🇮🇹Italy giuse69

    In Administration > Configuration > Region and language, you can set a vocabulary as translatable and de-select the name as a translatable field, leaving other fields translatable. Why do you say it is not possibile?
    That is useful for example for acronyms, where the acronyms itself must not be translated, while its long form and description are translatable.

Production build 0.71.5 2024