Page MenuHomePhabricator

Move wiki revision path parameter to query parameter
Closed, ResolvedPublic

Description

Move the optional wiki page revision parameter to support wikipedia.org style revisions.

AC

The following URLs are supported:

Titles with unencoded question marks are still unsupported:

Event Timeline

Change 397860 had a related patch set uploaded (by Niedzielski; owner: Sniedzielski):
[marvin@master] Update: change revision path param to oldid query param

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

Regarding the patch:

http://localhost:3000/wiki/0/0?oldid=773367189 (page "0/0" at revision 773367189)

This redirects instead of showing the redirect page itself but it appears to be a RESTBase vs MediaWiki behavior. e.g.:

https://en.wikipedia.org/api/rest_v1/page/mobile-sections/0%2f0/773367189?redirect=false
https://en.wikipedia.org/w/?oldid=773367189

http://localhost:3000/wiki/0/0 (page "0/0" at the latest revision)
http://localhost:3000/wiki/0 (page "0")

These work.

http://localhost:3000/wiki/?

Just like MediaWiki, this doesn't work. We use the question mark to separate URL query parameters.

Change 397860 merged by jenkins-bot:
[marvin@master] Update: change revision path param to oldid query param

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