I have developed a mobile theme that will display our current site in a simplified manner for mobile phones. I am using Theme Key to switch the theme once the user OS is detected as iPhone. After doing much research, I read it is best practice to offer a link to the "full website", which I have added to my menu. However I also read that it is best practice to have this link display whatever page they are currently on instead of sending them back to the home page. I'm sure this involves some PHP and I don't know how to write it from scratch for situations like this. Is there a snippet somewhere that does this?

Comments

dmegatool’s picture

Would love to know how to do this... Been looking around and there's no hints on how to make it happen.

Ndesign’s picture

bzsim Im creating a "link to full site" in my themekey module but im lacking patience because my drupal:path argument is not overriding my mobile theme...can you give me some simple steps to get me in the right direction to override my mobile theme switch?
So far when you visit my site it redirects to my mobile site and the theme changes based upon the system:user_os