Page MenuHomePhabricator

stripprefix=1 on Special:PrefixIndex completely hides first link
Closed, ResolvedPublic

Description

Author: mr.heat

Description:
Not much to explain. If you use the new stripprefix=1 checkbox at [[Special:PrefixIndex]] and you use an existing page name as the prefix the first link is stripped to an empty string and therefor completely hidden.

http://en.wikipedia.org/wiki/Special:PrefixIndex/WP:WikiProject_Comics?stripprefix=1

The resulting HTML looks like this (no content between <a> and </a>):

<a href="/wiki/Wikipedia:WikiProject_Comics" title="Wikipedia:WikiProject Comics"></a>

Not sure if this should be a "major" bug because it could make you think an existing page does not exist.

Simply solution: Display the unstripped page name in case the stripped page name matches /^\s*$/s. This would be a lot more useful in my opinion than a constant replacement.


Version: 1.22.0
Severity: normal

Details

Reference
bz52543

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:53 AM
bzimport set Reference to bz52543.

That is unfortunate, when I wrote this I used a prefix with a trailing slash '/' to simply get rid of the parent page.

We could indeed show the full prefix and properly display it.

Change 82029 had a related patch set uploaded by Matmarex:
SpecialPrefixindex: Try not to generate unclickable links

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

Change 82029 merged by jenkins-bot:
SpecialPrefixindex: Try not to generate unclickable links

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