Link to Entity get invalid language link in views.

Created on 21 March 2017, almost 8 years ago
Updated 29 August 2024, 4 months ago

Link to Taxonomy term get invalid language path if my language is not origin. Same bug if get Image (Link to content) get same error

How to reproduce

  1. enabled language and content translation
  2. add another language (ex: RO)
  3. create translatable taxonomy vocabulary
  4. enable content translation for taxonomies, and for the fields of the new vocabulary terms
  5. add to this vocabulary a term (ex: Test) and translate it (Test(Ro))
  6. create a taxonomy term view that displays fields, add "Name" and "Link to taxonomy term"

Notice how the two different fields have different links for the term. The term "Name" field ads correct link for both languages (en: "/taxonomy/term/1", ro: "/ro/taxonomy/term/1"), but the "Link to taxonomy term" adds for both the default language link (en: "/taxonomy/term/1", ro: "/taxonomy/term/1"

This bug for all my project. That i made start at 8.2.2

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 33 minutes ago

Created by

πŸ‡²πŸ‡©Moldova pavelculacov Chisinau

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    I can confirm this major issue still exists. Just ran into this in a commerce view.
    The field Product variation: Link to Product variation (view_commerce_product_variation) always returns the product variation link in the default language of the entity, not in the language of the views row.

    All data is shown in the correct language from the entity in the view, just the link has wrong language.

Production build 0.71.5 2024