- πΊπΈUnited States mark_fullmer Tucson
Just noting Wim's comment in the related issue in Drupal core ( https://www.drupal.org/project/drupal/issues/3317769#comment-14989414%2351 β¨ Drastically improve the linking experience in CKEditor 5 Needs work ):
rather than
pretending to link to /media/3/edit, which is blatantly wrong, I'm now
generating an /entity URI/ instead: entity:media/3. That's not familiar for
the end user, but it's equally recognizable, it just doesn't set the wrong
expectations. So it's IMHO a net improvement. - πΊπΈUnited States bvoynick
Here's an alternative workaround that adds media-specific logic to LinkitHelper::getEntityFromUserInput rather than revert the change to the saved URL.
Like the reversion patches, this too is probably not the approach the module should take long term, but it will help work around this problem on sites with the canonical route turned off.
- last update
about 1 year ago Composer require failure - πΊπΈUnited States mark_fullmer Tucson
This is a solid short-term workaround in #7. I think this bug report is effectively a duplicate of where π Linkit filter does not replace internal node reference with alias Active has ended up.
The longer-term solution is probably going to be along the lines of https://www.drupal.org/project/linkit/issues/3354873#comment-15209028 π Direct URL to media file entity does not work because relative URL does not pass URL path validation Fixed . If you agree and would like to help with finalizing that work, the community would appreciate it!