Last modified: 2014-02-12 23:48:05 UTC
Go to http://en.m.wikipedia.org/wiki/Special:UserLogin?welcome=false&returnto=Tanks%20in%20the%20Spanish%20Army&returntoquery=article_action%3Dwatch&type=signup Get login page. Notice type=signup in url...
Whoops. The code that handles the redirect only appears to care about 'returnto' and 'returntoquery' params: if ( $wgMFForceSecureLogin && WebRequest::detectProtocol() != 'https' ) { // get the https url and redirect $request = $special->getContext()->getRequest(); $query = array( 'returnto' => $request->getVal( 'returnto', '' ), 'returntoquery' => $request->getVal( 'returntoquery', '' ), ); $url = $mobileContext->getMobileUrl( $special->getFullTitle()->getFullURL( $query ), true ); $special->getContext()->getOutput()->redirect( $url ); } This should be a quick fix.
https://gerrit.wikimedia.org/r/#/c/47606/1