Mobile & Desktop issue – force link does not work
-
Hi,
I am using Any Mobile Theme Switcher to serve mobile layout for mobile visitors.
I have activated AMP in LSCache plugin and my .htaccess looks like this:
RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi|iPhone|iPod|iPad|Palm\ Os|Googlebot\-Mobile|mobile|mobi|Windows\ Mobile|Safari\ Mobile [NC]
RewriteRule .* – [E=Cache-Control:vary=ismobile]I believe this is working fine for desktops and mobile. The problem shows when I want to force mobile or force desktop on one of the devices.
Any Mobile Theme Switcher allows to force desktop theme on mobile by adding parameter to URL:
?am_force_theme_layout=desktop
and ?am_force_theme_layout=mobile for the opposite– the thing is that if I have loaded a page with mobile theme, LSCache will serve me mobile theme no matter if I have chosen to see desktop version by clicking the link
Is there any solution for this?
Regards,
orsz
- The topic ‘Mobile & Desktop issue – force link does not work’ is closed to new replies.