Plugin

Archived
Forum
(read-only)

Detect Mobile

ExpressionEngine 2, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From Gareth Davies

     

Send iPads to mobile

Support Request

AlanG
AlanG

I have this setup and directs mobile devices as it should however it als sends iPads to mobile even when tablet=“no” is used.

Please advise on fix

ITU Webmaster
# 1
Developer
ITU Webmaster

Hi, Can I just confirm the code you are using to redirect?

Also could you put this in an empty template and let me know the output/

{if '{exp:detect_mobile:type}' == "tablet"} I am a tablet {if:elseif '{exp:detect_mobile:type}' == "phone"} I am a mobile phone {if:else} I am not a mobile device {/if} 
ITU Webmaster
# 2
Developer
ITU Webmaster

Did you have any further information with this issue. I have tested on an iPad (version 2) and it is working as expected.