https://bugzilla.wikimedia.org/show_bug.cgi?id=52536

--- Comment #4 from dr0ptp4kt <[email protected]> ---
It seems that the onBeforePageRedirect hook implementation in
MobileFrontend.hooks.php checks whether the host of the redirect target and the
local server are the same.

In that case, it mobile-izes the target URL.

If I understand correctly, because the destination redirect target (the
returnto parameter that ZeroRatedMobileAccess uses to redirect()) is
en.wikipedia.org and because $wgServer will evaluate to en.wikipedia.org as
well, MobileContext::isLocalUrl( $redirect ) will yield a value of true, and
thus $redirect will be changed to be a URL with a host of en.m.wikipedia.org
via the $context->getMobileUrl( $redirect ) call within the if()
($this>updateMobileUrlHost( $parsedUrl ) and $this->updateMobileUrlQueryString(
$parsedUrl ) ).

Does that match your understanding?

It's very hard to troubleshoot this in production, but you can see by visiting
http://en.zero.wikipedia.org/w/index.php?title=Main_Page&renderZeroRatedBanner=true&renderwarning=yes&returnto=http%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DMain_Page%26mobileaction%3Dtoggle_view_desktop
(notice, it's on a ZERODOT subdomain), that upon clicking Yes you get
redirected to the MDOT Main_Page.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to