Page MenuHomePhabricator

Cannot link to section on relative page
Closed, ResolvedPublic

Description

Author: colin.fine

Description:
I wanted to make a relative link from a subpage to a named section on the parent
page.

The obvious syntax I tried is
[[../#anchor]]
but this gives a red link to page <parent>/ (ending with the slash).

The wiki on which I have hit the problem is only at 1.6.8, but I've just tried
it on meta (see URL), which appears to be running 1.10alpha


Version: 1.6.x
Severity: minor
OS: Windows 2000
Platform: PC
URL: http://meta.wikimedia.org/wiki/User:ColinFine/Subpage

Details

Reference
bz9151

Event Timeline

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

Child links (/child#heading) seem to work fine, so it may be something
special about the parent-dir processing.

Parser::maybeDoSubpageLink() wasn't splitting out the hashes.

Fixed in r24046.