Thread:Extension talk:MobileFrontend/Set useformat=mobile depending on hostname

Hi!

Assuming I have a Wiki mywiki.net. The wgMobileUrlTemplate is set to mobile.mywiki.net. Now for every page on the regular wiki the "Mobile view"-link at the bottom leads to the corresponding page on the mobile-Wiki, but these are still displayed the same as the desktop-variant.

Is there a way to automatically render all pages on mobile.mywiki.net as mobile pages regardless whether I look at them from the desktop-machine or a mobile-machine? That would make it easier to update the main page to a form that is usable on mobile devices (and even after that I'd prefer that arrangement as it makes switching to the desktop-variant easier)