Media Caption: Not converting from node/[xxx] to alias

Created on 10 August 2023, about 1 year ago
Updated 17 August 2023, about 1 year ago

Problem/Motivation

When i add an image using core media and add a caption and the use linkit to link that text to a node, the path node/x is not converted to its alias.
It seems media is taking over the data.
I already tried putting the linkit-filter first and last in order on the textformat page.

Any ideas or is that a textfilter order problem? You guys never link captions?

Thank you.

Example code generated linking in a media caption

<drupal-media data-caption="asddads &lt;a data-entity-substitution=&quot;canonical&quot; data-entity-type=&quot;node&quot; data-entity-uuid=&quot;dd894856-33c6-42f1-b316-a45c4a44c830&quot; href=&quot;/node/251&quot;&gt;linkdd&lt;/a&gt;" data-entity-type="media" data-entity-uuid="4242fb68-85e8-4d51-bc85-52719f25251a"></drupal-media>

Normal link in text

<a data-entity-substitution="canonical" data-entity-type="node" data-entity-uuid="b469f558-7af3-40eb-80e7-6361cc757e22" href="/node/26240">Sony XM4 (Test) </a>

Similar Reports

🐛 Linkit url not replace in image caption Active
#3162596: Linking images always links to image instead of desired url

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

6.0

Component

Code

Created by

🇩🇪Germany marcoka

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

Comments & Activities

Production build 0.71.5 2024