Page MenuHomePhabricator

Selection a namespace on [[Special:Watchlist]] should add the "namespace" parameter to the URL
Closed, ResolvedPublic

Description

  1. Go to

https://en.wikipedia.org/wiki/Special:Watchlist

  1. Select "User" namespace in the dropdown menu
  2. Click "Go"
  3. The page will be reloaded but the URL will still be

https://en.wikipedia.org/wiki/Special:Watchlist

Notice that if now I click in e.g. "Show minor edits", the URL becomes
https://en.wikipedia.org/w/index.php?title=Special:Watchlist&namespace=2&hideminor=0
so the "Go" button should also generate this parameter.

This would allow scripts such as
https://en.wikipedia.org/wiki/User:Theopolisme/Scripts/ajaxWatchlist.js?oldid=598337587
to easily update the page with the same parameters it was loaded initially.


Version: 1.24rc
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:11 AM
bzimport set Reference to bz65592.

I would like to work on this.
Can someone please assign this bug to me ?

The reason the "namespace" parameter doesn't appear in the url is because the form on the Watchlist page uses POST method.
Changing it to GET seems to work.

So, should i change it to GET, since there is no sensitive data being passed ?

Change 137702 had a related patch set uploaded by Rohan013:
Fix for bug 65592, adds namespace parameter to the url

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

Change 137702 had a related patch set uploaded by devunt:
Adds namespace parameter to the url in Special:Watchlist pages

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

Change 137702 had a related patch set uploaded (by Reedy):
Adds namespace parameter to the url in Special:Watchlist pages

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

Change 137702 abandoned by Umherirrender:
Adds namespace parameter to the url in Special:Watchlist pages

Reason:
Superseeded by I3bcd27596c21aa474547f182469abbf2ca34c4eb

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