Last modified: 2014-06-24 14:43:59 UTC
http://m.wikipedia.org currently redirects to http://en.m.wikipedia.org I don't believe m.wikipedia.org previously redirected in this way. The current behavior seems broken. The markup of http://www.wikipedia.org was specifically updated to better accommodate mobile users (responsive design with @media queries) and it makes logical sense that wikipedia.org and m.wikipedia.org should point to the same page content, I think. (It seems http://www.m.wikipedia.org works as expected.) I guess the first step here would be to figure out whether the current behavior is intentional.
https://git.wikimedia.org/blob/operations%2Fapache-config.git/20c6fce57fab11fe945e1fba5f3f85e238f04216/wwwportals.conf#L51 --> https://git.wikimedia.org/blob/operations%2Fmediawiki-config.git/1250a2026a1c3e2a8d38118e483a4d34674f6746/mobilelanding.php#L13 --> https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FZeroRatedMobileAccess.git/f566e5368801feb423fce1ae978bc48968083050/includes%2FPageRenderingHooks.php#L994
ZRMA extension is obsolete, the new code is in https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FZeroBanner.git/6411d46a0d81abc2be87093626860d20a371b07c/includes%2FPageRenderingHooks.php#L978 In any case, it would be easy to change the desired behavior - the only case Zero team is concerned with is the m. and zero. redirect to the "default" language for the given carrier in case traffic is coming from the Zero partner network. Otherwise, any behaviour is fine with us.
Btw, this also means that we are not handling the www.m. case correctly - it should go through the same route as m. Might need a bug for this i think.