Page MenuHomePhabricator

VisualEditor: Link input widget should somehow recognise input text that look like urls without protocol as external links (e.g. "www.example.org/foo") and then guess the right protocol
Open, LowPublicFeature

Description

This is a legacy of wiki-syntax, where all external links have to begin with the protocol. It would be nice to make the VE link inspector smarter than this.

"www.google.com" is almost certainly meant to be an external link - if there is an article by this name, then it could be shown in the link inspector dropdown as well, but the option for "External link" definitely needs to be there. Even something like "royal.gov.uk" should be recognised as a URL.

Requiring "http://" or some other protocol at the start is confusing for the newbie, as the protocol component of URLs is generally ignored nowadays.


Version: unspecified
Severity: enhancement

Details

Reference
bz50360

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:46 AM
bzimport set Reference to bz50360.

We solved this to some degree in WikiEditor with the link dialog in that extension. We can probably re-use some of that logic.

  • Bug 56490 has been marked as a duplicate of this bug. ***

We solved this to some degree in WikiEditor with the link dialog in that extension. We can probably re-use some of that logic.

https://github.com/wikimedia/mediawiki-extensions-WikiEditor/blob/master/modules/jquery.wikiEditor.dialogs.config.js#L131

By looking for www.? Yeah, that doesn't work. phabricator.wikimedia.org should be recognised, as well as the bug creator's suggestion of royal.gov.uk.

Sounds like T76398: External link interface for link dialogue would fix this by having the user deal with it instead.

So we now have a separate external link input, but it shows URLs without a protocol as invalid :/

Jdforrester-WMF renamed this task from VisualEditor: Link input widget should recognise input text that look like urls without protocol as external links (e.g. "www.example.org/foo") to VisualEditor: Link input widget should somehow recognise input text that look like urls without protocol as external links (e.g. "www.example.org/foo") and then guess the right protocol.Mar 25 2017, 3:30 AM
Jdforrester-WMF lowered the priority of this task from Medium to Low.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: rmoen.