Note: This problem impacts Special:RecentChanges on mobile NOT the advanced mobile contributions mode. The problem is the Special:MobileHistory redirect.
How to reproduce:
- Go to Special:RecentChanges on any wiki while using mobile view with AMC DISABLED.
- Select a history link, i.e. the "hist" link which is formatted like (diff | hist).
Actual result: navigates to the article.
Expected result: navigates to the article's history.
For example, here's a URL you get with desktop view: https://en.wikipedia.org/w/index.php?title=Plasma_display&curid=175859&action=history
Actual URL you get on mobile: https://en.m.wikipedia.org/w/index.php?title=Special:History/Plasma_display&curid=175859
Probably what the expected URL should be (these both give you the history page): https://en.m.wikipedia.org/wiki/Special:History/Plasma_display or https://en.m.wikipedia.org/w/index.php?title=Special:History/Plasma_display
Note how the actual URL is not the article's history, but just the article itself.
This happens regardless of device or web browser; using mobile view on a desktop computer gives the same result as mobile view on a mobile device. Skins have no effect; using Minerva Neue is the same as using Timeless. It happens on all MediaWiki-powered wikis that offer mobile view.
Developer Notes:
The history link has a URL like this:
https://en.m.wikipedia.org/w/index.php?title=John_Finnie&curid=31775812&action=history
Which redirects to this:
https://en.m.wikipedia.org/w/index.php?title=Special:History/John_Finnie&curid=31775812
However that is not a Special:History page. this is:
https://en.m.wikipedia.org/wiki/Special:History/John_Finnie
Whenever curid is used alongside a title without action=history it will show the page with revision <curid>
The logic in MobileContext::redirectMobileEnabledPages should unset( $values['curid'] );
QA steps
- Go to Special:RecentChanges on any wiki while using mobile view with AMC DISABLED. Tip: use incognito window.
- Select a history link, i.e. the "hist" link which is formatted like (diff | hist). Note the title of the page it corresponds to.
Expected result: navigates to the article history page. THe title should match expectations.
QA Results
AC | Status | Details |
---|---|---|
1 | ✅ | T214531#5403017 |