Use link.defaultProtocol
when auto-linking an URL
#8079
Labels
domain:ui/ux
This issue reports a problem related to UI or UX.
intro
Good first ticket.
package:link
squad:core
Issue to be handled by the Core team.
support:3
An issue reported by a commercially licensed client.
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
📝 Provide a description of the improvement
The
defaultProtocol
configuration option is used in the UI only. I think that this might be used for auto-link probably as well as the use-case is pretty similar.OTOH we should think that through as I'm unsure whether this should be tied or should we have an option to disable it for auto-link or UI only. I see this as either:
defaultProtocol
is set use the same logic for auto-link as in link UI.defaultProtocol
that could control UI and auto-link behavior separately. If set asString
would behave as option 1 but providing an object{ autoLink: 'http://', ui: 'https://' }
would allow for a fine-grined control.As for now, option 2, look like overly complicated and 1 looks like a way to go.
Original issue: #7909 (comment)
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: