Editor automatically creates links for phrases that look like URLs #26266
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Enhancement
A suggestion for improvement.
Describe the bug
When you paint some text and add a link to it, if the text vaguely looks like an URL, the editor will use the text as an URL.
To reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the editor not to assume the non-URL text to be an URL, and instead ask for the link target like it usually does. Perhaps the editor should check better for the URL pattern and only assume URLs where the protocol matches an actual protocol (perhaps use the list of permanent protocols as defined in the standards).
Editor version (please complete the following information):
Desktop (please complete the following information):
The problem is independent of browser or OS.
Additional context
I'm interested in providing code to fix this, but could use some pointers on where this behaviour happens – it's a big codebase and this isn't terribly easy to search for.
The text was updated successfully, but these errors were encountered: