Last modified: 2013-09-12 19:48:02 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 T54543, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52543 - stripprefix=1 on Special:PrefixIndex completely hides first link
stripprefix=1 on Special:PrefixIndex completely hides first link
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Bartosz Dziewoński
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-05 13:19 UTC by TMg
Modified: 2013-09-12 19:48 UTC (History)
2 users (show)

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


Attachments

Description TMg 2013-08-05 13:19:26 UTC
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.
Comment 1 Antoine "hashar" Musso (WMF) 2013-08-06 15:10:00 UTC
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.
Comment 2 Gerrit Notification Bot 2013-08-30 19:40:35 UTC
Change 82029 had a related patch set uploaded by Matmarex:
SpecialPrefixindex: Try not to generate unclickable links

https://gerrit.wikimedia.org/r/82029
Comment 3 Gerrit Notification Bot 2013-09-12 19:17:48 UTC
Change 82029 merged by jenkins-bot:
SpecialPrefixindex: Try not to generate unclickable links

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

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


Navigation
Links