Last modified: 2013-09-17 16:11:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44140, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42140 - VisualEditor: Internal page links touched by VisualEditor contain underscores
VisualEditor: Internal page links touched by VisualEditor contain underscores
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Normal normal
: VE-deploy-2012-11-26
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-15 05:39 UTC by MZMcBride
Modified: 2013-09-17 16:11 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2012-11-15 05:39:52 UTC
Currently when a user uses the link dialog box tool thing in VisualEditor to specify where certain text should link to, if the user specifies an internal page as the target, the wikitext for the link will use underscores.

For example, I highlight some text in VisualEditor with my mouse and then click the link icon. A "Hyperlink" dialog box appears and I enter "MediaWiki on IRC" into the text input area. I hit the "return" key on my keyboard to make the dialog box disappear and now I have a blue link in my VisualEditor interface. If I then save this page and look at its wikitext source, I see:

[[MediaWiki_on_IRC|fffffffff]]

Internal links are using underscores. This is wrong.
Comment 1 James Forrester 2012-11-15 22:21:48 UTC
Possibly a Parsoid issue?
Comment 2 Roan Kattouw 2012-11-20 03:01:45 UTC
This was an issue in VE's internal link handling code, not in Parsoid. Although the original reason for the code working the way it did (normalizing to underscores) was indeed to make Parsoid happy, as I found out the hard way when I tried to fix this by just normalizing to spaces instead.

Fixed in https://gerrit.wikimedia.org/r/34253

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links