Domanda

I know I can get the user agent from the Arg struct but how can I tell it is from a mobile browser (i.e. android or iPhone Safari), and then redirect to the appropriate mobile page?

È stato utile?

Soluzione

You might first want to read up on the pros and cons of detection via the user agent. Once you decide how to proceed and you still want to use redirects, you can use the redirection support in Yaws to redirect to different pages.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top