Page MenuHomePhabricator

Switching to https redirects account creation page to login
Closed, ResolvedPublic

Details

Reference
bz44658

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:33 AM
bzimport added a project: MobileFrontend-beta.
bzimport set Reference to bz44658.
Jdlrobson created this task.Feb 5 2013, 1:40 AM

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.