Last modified: 2014-02-12 23:48:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46658, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44658 - Switching to https redirects account creation page to login
Switching to https redirects account creation page to login
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
beta (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Arthur Richards
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-05 01:40 UTC by Jon
Modified: 2014-02-12 23:48 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Comment 1 Arthur Richards 2013-02-05 18:20:07 UTC
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.
Comment 2 Arthur Richards 2013-02-05 18:31:13 UTC
https://gerrit.wikimedia.org/r/#/c/47606/1

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links