Page MenuHomePhabricator

Add override to force mobile rendering of layout
Closed, ResolvedPublic

Description

Sometimes WURLF and our own device detection are missing a UA and we'd like to force rendering of the page with a mobile layout.


Version: unspecified
Severity: normal

Details

Reference
bz29378

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:33 PM
bzimport set Reference to bz29378.
bzimport added a subscriber: Unknown Object (MLST).

Even if they're not missing, one sometimes wishes to override the preferences of others.

We should add the query parameters to the help page of the extension.
http://www.mediawiki.org/wiki/Extension:MobileFrontend

preilly wrote:

The following text, "If you would like to test the mobile extension on a desktop browser or your device doesn't render the mobile version you can append the following key-value pair to the querystring: useFormat=mobile e.g., http://nomad.tesla.usability.wikimedia.org/index.php/Eby_J._Jose?useFormat=mobile" has been added to the http://www.mediawiki.org/wiki/Extension:MobileFrontend page.

awesome. lets add one for wap too.

preilly wrote:

Okay, done. This fix was committed in the following revision: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90505

You just need to set the querystring parameter to useFormat=mobile-wap instead.