Links to media entities are sometimes replaced

Created on 27 January 2022, about 3 years ago
Updated 25 March 2024, 11 months ago

Problem/Motivation

When using the Linkit module with standalone urls turned off in media.settings, you can create a scenario where Linkit adds the /media/ID url, which becomes a routed url without a media route parameter and therefore linkyreplacer creates a Linky entity for it.

See https://git.drupalcode.org/project/linkit/-/blob/6.0.0-beta2/src/Plugin/...

Steps to reproduce

- Install Linkit
- Disable standalone_url in media.settings
- Use linkit to embed a link to a media entity in the WYSIWYG
- Notice a Linky is created.

Proposed resolution

- Instead of checking the route parameter, just regex match the url?

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇦🇺Australia acbramley

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024