Content in config pages isn't rendered in the correct language

Created on 20 January 2025, 3 months ago

Problem/Motivation

Rich text content is not processed using the language context and so links (via linkit module) or embedded media are not the correct language.

Steps to reproduce

1. Have a multilingual site setup using content translation.
2. Create a config page, with a rich text field and language context enabled.
3. Add a block for the config page to a page.
3. Add values for the config page in both languages with a link to a node that's translated.
4. Visit the page in both languages - both will link to the default language version of the node, and when visiting in the non-default language will lead to a 404.

Proposed resolution

Not sure on a resolution, the processed text filters pass in the language of the field being rendered, which as config pages aren't translatable, this is set to und. The linkit and drupal media filters both use the language code passed in to load the right target entity.

Remaining tasks

Figure out a solution.

User interface changes

N/A

API changes

N/A

Data model changes

N/A?

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom mjpa

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024