Link attributes are not set for linkit links in Drupal 10.2 versions

Created on 18 April 2024, 7 months ago
Updated 22 May 2024, 6 months ago

In Drupal 10.2 versions, options are not set anymore on the link element in viewElements() of the LinkFormatter - see https://www.drupal.org/project/drupal/issues/2885351 πŸ› Query string duplications Fixed and https://git.drupalcode.org/project/drupal/-/merge_requests/5333/diffs?co...

Also LinkitFormatter (I tested with linkit 6.1.3) overrides the url attributes option for linkit entity urls and these get lost (probably somewhere here $url = $this->getSubstitutedUrl($link_item)) which means they can't be set in the preRenderLink() method from the Link render element.

All of these combined contribute to the fact that link attributes are not set for linkit entity links.

πŸ’¬ Support request
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡·πŸ‡΄Romania adinac

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