Page MenuHomePhabricator

Remove whitespace from user-inputted links
Closed, DuplicatePublic

Description

I added a link to a mediawiki.org page using VisualEditor by pasting the URL in to the link box. It worked. I made a second link to the same wiki, using the same process. This time, it produced a red link. The result was this:

This might include [[ https://www.mediawiki.org/wiki/User:Elitre (WMF)/Sandbox2 |a table about translation status]].

Screen_Shot_2015-02-09_at_10.09.29_AM.png (622×152 px, 29 KB)

Event Timeline

Whatamidoing-WMF raised the priority of this task from to Needs Triage.
Whatamidoing-WMF updated the task description. (Show Details)

Looks like you put a space in the box first…

[[ ]] is not a valid wikitext link, and both [[ Example]] and [[Example ]]
render the same as [[Example]], so you'll never need to add either a
leading or trailing space to a link. Shall we re-title this as "Please
strip extraneous spaces from links", and add the obligatory link to
http://xkcd.com/327/ "?

Jdforrester-WMF renamed this task from Linking to a URL produced an internal link (redlink) to the URL to Remove whitespace from user-inputted links.Feb 11 2015, 5:45 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF set Security to None.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.