Last modified: 2010-05-15 14:36:26 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 T4108, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2108 - category path ($wgUseCategoryBrowser) should be displayed consistently
category path ($wgUseCategoryBrowser) should be displayed consistently
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
PC All
: Normal trivial with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-05-08 09:19 UTC by lɛʁi לערי ריינהארט
Modified: 2010-05-15 14:36 UTC (History)
1 user (show)

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


Description lɛʁi לערי ריינהארט 2005-05-08 09:19:59 UTC


start with 
[[Category:Follow me|{{PAGENAME}}]]

Nevertheless as you can see at
the order how category paths are displayed differs

What should be done:
a) (easy to implement) displaying the paths in alphabetical order maight be
generic but it does not offer a possibility to influence it
b) (more usefull ?) display the paths in the order as specified in the code but
AVOID duplicate paths.

Regards Reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-05-08 09:30:34 UTC
additional link:
Comment 2 lɛʁi לערי ריינהארט 2005-05-09 13:22:29 UTC

Another example is available at:

Regards Reinhardt [[user:gangleri]]
Comment 3 Antoine "hashar" Musso (WMF) 2005-08-11 06:01:40 UTC
The tree of categories is inverted :/ Need to find a way to inverse it
before sorting.

A path showing like:
[[world]] > [[europe]] > [[germany]]
[[america]] > [[mexic]]

Is stored as:
germany => array( europe => array( world )  ),
mexic => array( america )

So we need to find a way to inverse it to:
world => array( europe => array( germany )  ),
america => array( mexic )

And sort that :)
Comment 4 Antoine "hashar" Musso (WMF) 2005-08-25 00:47:28 UTC
Fixed in HEAD and 1.5, should be available in RC3 / 1.5.0.
I made a quick hack that just sort the entries. There's some issues
with categories without content as the script sort using the rendered
I am too lazy to properly fix it and the hack does the job.
Comment 5 lɛʁi לערי ריינהארט 2006-01-18 01:53:49 UTC
changed url because Betawiki moved

test case / sample url:

Thanks Ashar fro fixing this (the order)! Probably the paths should be unique.

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