Page MenuHomePhabricator

[[./Foo]] is not valid wikitext for links and shouldn't be rendered as one
Closed, ResolvedPublic

Description

Links in the form [[./Bla]] are invalid markup, but are rendered as correct links in VisualEditor. There may be other types of invalid formats that are similarly accepted.


Version: unspecified
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=33094

Details

Reference
bz51090

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:07 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz51090.

You can't now enter these links in VE (bug 33094) but when they appear in the page they are still rendered as valid links in VE. For example [[./Bla]] displays the same as [[Bla]] in the source would and when right clicked, it opens that page.

This needs to be checked more carefully after template expansion. Test case this will need to handle as well:

[[{{echo|./Bla}}]]

This section details the invalid cases to handle:

http://en.wikipedia.org/wiki/Wikipedia:Page_name#Technical_restrictions_and_limitations

The best place to handle this is in onWikiLink in ext.core.LinkHandler.js.

Change 124009 had a related patch set uploaded by Subramanya Sastry:
(Bug 51090): Follow-up to rGPAR4dce7f620e7a: handles more scenarios

https://gerrit.wikimedia.org/r/124009

Change 121658 merged by jenkins-bot:
Bug 51090: Render invalid wikilinks as plain text

https://gerrit.wikimedia.org/r/121658

Change 124009 merged by jenkins-bot:
(Bug 51090): Follow-up to rGPAR4dce7f620e7a: handle transclusions + html2wt mode

https://gerrit.wikimedia.org/r/124009