- 🇦🇺Australia gordon Melbourne
This looks great and the tests look fine as well.
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/...
- 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.
- Instead of checking the route parameter, just regex match the url?
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This looks great and the tests look fine as well.