[Wikitech-l] No autodetection in Mobile Frontend extension
preilly at wikimedia.org
Sat Jan 7 10:19:16 UTC 2012
You need to set an xdevice header. We do that in our varnish caching layer.
You can modify the code to set it based on WURFL detection. I'll send you the modifications on Monday... if that is okay.
On Jan 7, 2012, at 1:18 AM, Quim Gil <quimgil at gmail.com> wrote:
> Hi, I have installed the Mobile Frontend extension in my pet project
> at http://espiral.org
> I only get to the mobile view manually, through the link at the
> footer. Autodetection of mobile browsers doesn't seem to work or I
> have done / missed something in my installation. I have got feedback
> from a bunch of users with a bunch of devices, nobody got the mobile
> view by default and all of them get it when visiting
> Something that looks different in my installation compared to
> Wikipedia's is the lack of a redirect to a ".m." URL. I'm actually a
> bit confused about this. It is mentioned briefly at
> http://www.mediawiki.org/wiki/Extension:MobileFrontend but it is not
> clear to me whether this is something supposed to work automagically
> when installing the extension or whether there is something I need to
> do with the WURFL database, the LocalSettings.php, the web server...
> Other than this the extension works great presenting the mobile view
> of pages. Thank you very much for your work!
> Wikitech-l mailing list
> Wikitech-l at lists.wikimedia.org
More information about the Wikitech-l