Token generation of entity references are not respecting the given langcode

Created on 23 May 2022, over 2 years ago
Updated 30 April 2024, 7 months ago

Problem/Motivation

I have a mutlilingual website with many content type are translated.

For my articles, I have a reference field to a taxonomy term (blog, news, etc.) that are translated but the field is common at all the article translations (so we can't have "News" in french and "Blog" in english per example).

The path pattern is [node:field_article_type]/[node:title]

When I create or edit a content "article", the path is translated, but when I generate in bulk from the module settings, the path are regenerate without the translation.

So, when I create or edit the content, I have :

- FRENCH : /actualite/le-titre-du-noeud
- ENGLISH : /news/the-node-title

When I bulk update

- FRENCH : /news/le-titre-du-noeud
- ENGLISH : /news/the-node-title

The node title is translated, but not the field "field_article_type".

Steps to reproduce

- Create a multilingual content type + a taxonomy with many terms translated
- Add a taxonomy reference field in the content type
- Create a pattern with the taxonomy reference field inside
- Try to create and/or edit a content
- Try to generate the path in bulk.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs work

Version

1.10

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance bessonweb

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024