LinkControl - improve "valid entry" matching (not always a URL!) #19629
Labels
[Block] Navigation
Affects the Navigation Block
[Type] Question
Questions about the design or development of the editor.
Originally posted by @WunderBart in #19458 (comment)
We'd also have more control over what we want to render as a link title using created URL object properties.
I've made a simple fiddle with the validation demo: https://jsfiddle.net/wunderbart/xn01pscd/
Notes
This might not be as simple as outlined above because we need to account for entries including:
mailto:
tel
None of these pass the
new URL()
test.@WunderBart I'm all for improving the "valid entry" logic but we need to be mindful that valid input isn't only pure URLs.
The text was updated successfully, but these errors were encountered: