I’m using Leevi Grahams NSM Config Bootstrap to server different templates to mobile users.
domain.com = Full site for desktop users
m.domain.com = Mobile site
There is no automatic redirect in the bootstrap config, so what I’m using is MX Mobile Detect for detecting if template is requested by a mobile device. If true, that will redirect you to the mobile site. If false it serves you the full side.
My problem is that when accessing the full site on a mobile phone it redirects me to the mobile site. So far so good. But then it redirects me back to the full site, and I’m stuck in an endless loop.
The only code I’ve defined in my templates is:
Full site header template:
{exp:mobile_detect location="http://m.domain.com" redirect="mobile"}Mobile site header template:
{exp:mobile_detect location="http://domain.com" redirect="not_mobile"}Any ideas why I’m stuck in a loop? As far as I can see, mobile phones are redirected to full site when accessing full site and desktop users are redirected to full site when accessing mobile site.
Edit: It’s only mobile requests that get redirected, not desktop browsers.