Page MenuHomePhabricator

With complex section headers. section editing+saving loads the page with invalid anchors
Closed, ResolvedPublic

Description

Author: bugzillas+padREMOVETHISdu

Description:
See bug 670 comment 1 Part I b) and c), and see bug 670 comment 3.

If a section with header "[[foo]] bar" in a page titled "baz" is edited, on
saving the expected URL loaded is:

http://website.org/pathtowiki/baz#foo_bar

but the actual URL loaded is:

http://website.org/pathtowiki/baz#.5B.5Bfoo.5D.5D_bar

The anchor generated for "[[foo]] bar" is actually #foo_bar and not
#.5B.5Bfoo.5D.5D_bar and hence the current behaviour is wrong.

Similar things probably happen if the section header has certain special
characters or formatting, e.g. "foo ''bar''"


Version: unspecified
Severity: normal
URL: http://meta.wikimedia.org/wiki/User:Gangleri/remarks#InterWiki_link_translation

Details

Reference
bz1860

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:20 PM
bzimport set Reference to bz1860.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

Fixed in CVS HEAD and REL1_4.
Deployed to wikipedia.org