Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top