Page MenuHomePhabricator

next/prev for All pages navigation differs between link and form method.
Closed, ResolvedPublic

Description

Compare http://en.wikipedia.org/wiki/Special:AllPages/CJ

with

http://en.wikipedia.org/w/index.php?title=Special%3AAllPages&from=CJ&to=&namespace=0

In the last case, there are not next/prev elements. This is caused by the presence of to= in the link. If that is removed, the behavior is identical to the first link. This is a curious difference in special page behavior that is confusing some users (reported on the WP:Helpdesk).

Details

Reference
bz21969

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:48 PM
bzimport set Reference to bz21969.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 6912
patch to make to and from parameters of Special:AllPages be treated as if they were not set if they are equal to empty string

I made a quick little patch that will treat .../wiki/Special:allpages?to=&from= equivelent to .../wiki/special:Allpages . However it appears the current behaviour might be a feature instead of a bug. When to or from is the empty string, it is treated as if they were the last and first pages respectively. If the value of the empty string is treated equivalent to the to or from not being set, then there is no easy way to specify lise all pages from ''somepage'' onwards (or the reverse).

Attached:

We can maybe pass some hidden <input> in the form that would switch whether how "from=" and "to=" are handled so that it doesn't change the behavior of other links.

bawolff: Any plans to update your patch here and put it into gerrit?

bawolff: Any plans to update your patch here and put it into gerrit?

bawolff: Any plans to update your patch here and put it into gerrit?

bawolff: Any plans to update your patch here and put it into gerrit?

Hmm. Well. I'm appeatantly not very responsive on this bug... how did I not notice the bugmail on this until now?

TheDJ claimed this task.

Not sure when this (almost 10 year old issue) was fixed, but it does seem fixed.