EntityReferenceLabelFormatter generates links in wrong language

Created on 22 March 2019, over 5 years ago
Updated 29 August 2023, about 1 year ago

Problem/Motivation

When using the Link feature of the EntityReferenceLabelFormatter, the generated link points to the entity in its original language, not in the path prefix specified language.

Proposed resolution

Use the passed in $langcode in EntityReferenceLabelFormatter::viewElements() to generate the URL in the correct language.

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¨πŸ‡³China jian he

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Since there hasn't been a follow up to #11 going to close for now.

    IF still valid please reopen updating issue summary with steps to reproduce.

    Thanks1

Production build 0.71.5 2024