10 Aug 2012
31 Jul 2012
Link to this post
My client has a separate mobile site and there are certain pages in SF they want to automatically redirect to the mobile equivalent. I wanted to add a checkbox so that the user can indicate the SF site has a mobile page and then open a textbox so they could put the redirect URL.
What I have to do instead now, is create module that does the exact same thing but it isn't associated with the page. In the module, the Content Managers have to put in the SF URL and the Mobile URL. Then I have have a handler that checks to see if the request is a mobile UserAgent. If it is, I see if the address in SF matches any of the URL's in the module. If they do, I then redirect them to the Mobile URL in the module.
If this is something similar to what you are doing, I could post some code to help you.