Custom MOBILE Site Re-Direct

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/1/2012 1:42:13 PM
Gravatar
Total Posts 199

Custom MOBILE Site Re-Direct

I want to use an existing mobile site I developed and just enable it inside of mojo so I can save time not re-creating it temporally.

Is it possible to do this and can I place this mobile site into a directory called "mobile" and alter the web.config to do a simple detection and re-direct?

Thanks in advance

2/1/2012 1:55:31 PM
Gravatar
Total Posts 18439

Re: Custom MOBILE Site Re-Direct

You could implement a UserControl and put it in your layout.master file.

In the usercontrol you could detect the user agent string of the browser and check the current url and if it is a mobile device and the url isn't your mobile url then redirect to your mobile url.

However, that said I think its not a good idea to redirect mobile users, as mentioned in the product information for my Mobile Kit Pro add on. If a user searches google and google shows a link to the page in your site that has content matching their search, then you redirect them to a page that does not have what they came for its a bad user experience. If your mobile site has the same information and you can redirect them to a page that has the same information/content as the one they searched for that would be ok, but that would require some really complex logic to know exactly which page they requested and which mobile page to redirect them to.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.