Last modified: 2013-07-04 06:40:44 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 T52428, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50428 - Preserve wiki link href with ././ prefix
Preserve wiki link href with ././ prefix
Status: RESOLVED WORKSFORME
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: James Forrester
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-29 17:29 UTC by Gabriel Wicke
Modified: 2013-07-04 06:40 UTC (History)
3 users (show)

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


Attachments

Description Gabriel Wicke 2013-06-29 17:29:06 UTC
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
Comment 1 Gabriel Wicke 2013-06-29 17:35:19 UTC
Those prefixes actually seem to have been inserted by VE:
https://en.wikipedia.org/w/index.php?title=DreamWorks_Animation&curid=1509817&diff=562129729&oldid=562106766
Comment 2 Richard Morris 2013-07-03 03:19:30 UTC
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
Comment 3 Gabriel Wicke 2013-07-03 19:39:48 UTC
It worked at http://en.wikipedia.org/wiki/User:Catrope/Shrek?veaction=edit though, so closing as working.
Comment 4 Richard Morris 2013-07-03 20:11:50 UTC
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.
Comment 5 Gabriel Wicke 2013-07-03 21:34:18 UTC
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.
Comment 6 Richard Morris 2013-07-04 06:40:44 UTC
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

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


Navigation
Links