Page MenuHomePhabricator

Preserve wiki link href with ././ prefix
Closed, DeclinedPublic

Description

The following HTML does not seem to properly round-trip through VE:

<p><a rel="mw:WikiLink" href="././Foo">./Foo</a></p>

While the ././ prefix is not ideal (see Parsoid bug 50426) VE should still preserve the href on unmodified content. Instead, it seems to prefix another ./, which then results in diffs like this one:

https://en.wikipedia.org/w/index.php?title=DreamWorks_Animation&curid=1509817&diff=562129988&oldid=562129729


Version: unspecified
Severity: normal

Details

Reference
bz50428

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:51 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz50428.

This seems to also seem to replace spaces with underscores, and mangles category links. EG changing [[Category:House (season 7) episodes]] to [[./Category:House_(season_7)_episodes]]
https://en.wikipedia.org/w/index.php?title=Out_of_the_Chute&diff=prev&oldid=562623071

WORKSFORME is not good enough for a resolution for this bug. This seems to be quite a rare bug which I've only seen in edits with the visualeditor-needcheck tag

https://en.wikipedia.org/w/index.php?title=Special:RecentChanges&tagfilter=visualeditor-needcheck

Looking thorough that this edit
https://en.wikipedia.org/w/index.php?title=Ron_Davies_(songwriter)&curid=31118393&diff=562723238&oldid=553701771

introduced the bad markup and that was only a couple of hours ago.

Note that I also deployed a fix for bug 50426 just before I closed this bug. That will avoid triggering this in VE even if there is still a bug.

My problem is still occurring. I've now created bug 50720 for the specific issue I'm seeing. The latest occurrence was 05:07, 4 July 2013
https://en.wikipedia.org/w/index.php?title=Austropotamobius_pallipes&curid=3945333&diff=562783871&oldid=545518009