Link field > Internal links should display a link to the original language if no translation is available.

Created on 15 June 2023, over 1 year ago
Updated 22 August 2024, 3 months ago

Problem/Motivation

If the linked node has no translation in the current language, the URL of the link will be {current_language}/node/{id} and it will display the content in its original language. This is a bad SEO practice because it's having two different URLs with the same content.

Steps to reproduce

1. Create a node with a link field. The node must be translatable, but the field is not required.
2. Insert an internal link to a node without translation.
3. Translate this node into another language and go there.
4. The displayed link should be {current_language}/node/{id}.

Proposed resolution

If the linked node has no translation for the current language, the URL must be that of the original language.

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
LinkΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ͺπŸ‡ΈSpain orodicio

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024