Page MenuHomePhabricator

Special:Categories navigation is broken when using Special:Categories/<prefix>
Open, HighPublic

Description

I'm using https://commons.wikimedia.org/w/index.php?title=Special:Categories/Rijksmonumenten to find and create missing categories. Since recently next and previous stopped working (try clicking it, the url changes, but "Rijksmonumenten" is still the first category). I'm not sure when it worked and when it stopped working.

When I empty the field with "categories" in it and press "go" I see the first category of Commons ("!!!"), but in the url is still "Rijksmonumenten" urlencoded. When I press "next" I end up at "Rijksmonumenten" again.

Someone probably changed the way navigation worked and forgot about the [[Special:Categories/Rijksmonumenten]] notation of linking to the special page.


Version: 1.21.x
Severity: normal
URL: https://commons.wikimedia.org/w/index.php?title=Special:Categories/Rijksmonumenten

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:12 AM
bzimport set Reference to bz43506.
bzimport added a subscriber: Unknown Object (MLST).

Problem seems to be that the next and previous-links use an offset-parameter, while the special page itself uses from.

The from parameter should probably be deprecated and changed to offset everywhere. That way we don't have two conflicting systems.

Aude: Do you plan to rework the patch (as you are set as assignee)?

shall (me or someone) try again in a fresh patch

Change 41215 abandoned by Aude:
(bug 43506) Fix pager in Special:Categories, make offset default param

Reason:
old and outdated

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

Reducing priority for now as it's had one gerrit change attempt and abandonment.

Aude: let the bug know if you want to try again. I'm resetting assignee for now though.

Maarten: This bug is still valid, but is this blocking your work? Are there work arounds in place?

Krinkle raised the priority of this task from Medium to High.Jul 8 2018, 9:05 PM
Krinkle subscribed.

Confirmed this is still broken.

  1. View https://commons.wikimedia.org/w/index.php?title=Special:Categories/Rijksmonumenten.
  2. Press "next 100", links to https://commons.wikimedia.org/w/index.php?title=Special:Categories/Rijksmonumenten&offset=Rijksmonumenten_in_America%2C_Limburg.

Expected:

The results are the ones that follow the current page (alphabetically after the last result shown at step 1.

Actual:

The results are the same as from step 1. Still starting at "Rijksmonumenten", not "Rijksmonumenten in America, Limburg".

It seems the special page is looking at the title portion, and ignoring the offset.

This basically makes category paging and browsing next to impossible to use for users. A power user may be able to fiddle with the query directly, but that cannot be expected from regular users.

Change 524652 had a related patch set uploaded (by Wugapodes; owner: Wugapodes):
[mediawiki/core@master] specials: Fix T45506 so Special:Categories understands 'offset'

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