Mobile not redirecting, not parsing {is_mobile} and {mobile_client}

Maik's Avatar


07 Nov, 2012 03:15 PM

Hi Wouter,

Installed your extension on a client's website, but have trouble getting it to work properly.
This is how my template structure looks like:

pages *
- index - static

- index - static

The index file in the template group 'pages' is my site homepage. On mobile devices, mobile__pages/index should be shown, but instead I just get to see the regular index page. Same goes for the static template.

The variables {is_mobile} and {mobile_client} are not being set (neither on mobile or on desktop). The stf and stm links are being generated though.

I am using EE 2.5.3 with Structure 3.3.4. Freebie is disabled so that can't be interfering.

Any clues?

  1. Support Staff 1 Posted by Wouter Vervloet on 07 Nov, 2012 03:48 PM

    Wouter Vervloet's Avatar

    Hi Maik,

    Which version of Mobile are you using? Apparently a few of my commits to a local development branch made it onto the master branch on GitHub, so you might've downloaded a faulty version.

    I have corrected that and committed a fully working version back to the master branch on GitHub.

    – Wouter

  2. 2 Posted by Maik on 07 Nov, 2012 03:53 PM

    Maik's Avatar

    Hi Wouter, just updated to 0.9.7 this afternoon.

  3. 3 Posted by John on 08 Nov, 2012 08:33 PM

    John's Avatar

    Same issue as Maik listed. It's not redirecting or parsing the Mobile variables, but the links are being generated. Using 0.9.7. Any ideas?

    I appreciate the help.

  4. Support Staff 4 Posted by Wouter Vervloet on 08 Nov, 2012 09:53 PM

    Wouter Vervloet's Avatar

    I reverted the add-on to an older version as some of my (messed up) commits seem to have introduced some errors. Please download a fresh copy (0.9.5) and it should work again.

    Sorry for all the troubles and I will look into it a bit more.

    – Wouter

  5. 5 Posted by John on 08 Nov, 2012 10:08 PM

    John's Avatar

    v0.9.5 works great. This is going to be a big help. Thank you.

  6. Wouter Vervloet closed this discussion on 05 Dec, 2012 08:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

10 Jan, 2021 01:48 PM
11 May, 2020 02:18 PM
16 Apr, 2020 06:39 AM
04 Apr, 2020 06:12 PM
30 Mar, 2020 07:50 PM