I've successfully added alttemplate's for mobile pages, in regards to templates without a masterpage. When it comes to using masterpages I'm lost with setting the necessary URL's.
Example:
Home
Masterpage
> About
> Contact
mHome
mMasterpage
> mAbout
> mContact
So I'd be creating a custom masterpage with the about and contact inheriting the template. I can get the mHome to redirect on mobile using:
document.location.href = '?altTemplate=mHome';
Now when it comes to redirecting the About to mAbout and Contact to mContact how would this differentiate?
I'd assume (but it doesn't work):
document.location.href = 'About?altTemplate=mAbout';
Regards.