language_content_entity=LANGUAGE_CODE is being appended to each link

Created on 29 June 2020, over 4 years ago
Updated 9 May 2024, 5 months ago

Using a text format with the Linkit URL converter text filter appends language_content_entity=LANGUAGE_CODE to Linkit-generated links.

Example of a generated link:

<a data-entity-substitution="canonical" data-entity-type="node" data-entity-uuid="ef81a72b-49d7-4201-9696-83b924fd23d1" href="/en/madrid?language_content_entity=en" title="Madrid">Madrid</a>

In my case, I'm temporarily using a path prefix, and thereby adding a query string parameter for the language is not necessary. I have reproduced this with both latest 8.x-5.x and 6.x releases.

Also, I was not expecting the following attributes (are they mandatory or can they be stripped?):

data-entity-substitution="canonical"
data-entity-type="node"
data-entity-uuid="ef81a72b-49d7-4201-9696-83b924fd23d1" 
πŸ› Bug report
Status

Closed: won't fix

Version

5.0

Component

Code

Created by

pere orga Catalonia

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.

  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    For some time now, as indicated by the Linkit project page β†’ , the 8.x-5.x branch of Linkit is not undergoing active development. It is also only compatible with unsupported versions of Drupal core (Drupal 8 and Drupal 9).

    To help the maintainers of the Linkit module better steward tasks under active development, I'm going to mark this issue as closed (wontfix). Sites using 8.x-5.x can certainly continue to do so, but should make plans for updating to the latest supported version of Linkit.

    Even better: Drupal core will soon provide link autocomplete suggestions in CKEditor similar to what this module does. Sites using or considering using Linkit should follow this core issue ✨ Drastically improve the linking experience in CKEditor 5 Needs work to evaluate whether they can use the core solution instead of Linkit. See feature differences below to compare what Linkit includes that will not initially be in Drupal core.

    If this issue relates to a problem or feature request that is applicable to the latest supported version of Linkit, please create a new issue, associated with that branch, describing the bug or enhancement.

    For participation and information in Linkit's roadmap, see 🌱 LinkIt Release Roadmap and Issue Prioritization Active .

    Thanks, community, for you collaboration and consideration!

  • Status changed to Active 1 day ago
  • πŸ‡ΊπŸ‡ΈUnited States pianomansam

    The OP said:

    I have reproduced this with both latest 8.x-5.x and 6.x releases.

    So I'm reopening this and labeling it for 6.x. I am presently experiencing this issue on 6.1.5 so I'll be posting a patch shortly.

  • Merge request !72make canonical sub language neutral β†’ (Open) created by pianomansam
  • Pipeline finished with Failed
    1 day ago
    Total: 139s
    #311872
  • πŸ‡ΊπŸ‡ΈUnited States pianomansam

    I've opened a MR that makes the canonical substitution language neutral, by default. I don't know if this will work in all circumstances, but it works for session language detection.

Production build 0.71.5 2024