- Issue created by @artis.bajars
- π±π»Latvia artis.bajars
Had some time to look at this closer and it seems to me that all that's needed to prevent the
uri
from jumping from theentity:
to theinternal:
schema is to try and load the entity translation from context. Please review. - Status changed to Needs review
about 1 year ago 12:18pm 21 April 2023 - last update
about 1 year ago 83 pass - last update
6 months ago Patch Failed to Apply - π¨πSwitzerland Berdir Switzerland
Was running into related issues as well, something changed with a recent release.
I also had to change \Drupal\linkit\Plugin\Field\FieldFormatter\LinkitFormatter::getSubstitutedUrl(), which has very similar code. This mirrors \Drupal\linkit\Utility\LinkitHelper::getEntityFromUserInput(), which is called when the link options are not present (so possibly that's the change, having those vs not).
- last update
6 months ago Patch Failed to Apply - last update
6 months ago Patch Failed to Apply - π¨πSwitzerland Berdir Switzerland
Meh, looks like this was already addressed in π Direct URL to media file entity does not work because relative URL does not pass URL path validation Fixed based on my review IIRC. I'm getting old :)