none
External SharePoint Site- Mobile Detect/Redirect Question RRS feed

  • Question

  • At my company we have an internet-facing SharePoint 2010 site.  We will be creating a subsite that will serve as a mobile site (different design, smaller subset of information).  When a user hits the homepage from a mobile device, I would like them to be redirected to a page where they can select a link to either view the mobile site, or the full desktop site.  

    Correct me if I'm wrong, but I believe standard SharePoint mobile detection needs to be enabled for this.  I think I can redirect the mobile users to my "choice" page pretty easily with an HttpModule, so that they don't hit the default SP mobile page.  But the problem I'm having is that if they choose to go to the full desktop site, if I try to redirect them there in the module, they're just going back to the default SP mobile page.  

    My question is, is it possible to achieve this in SharePoint?  It seems to me that the default mobile detection would be difficult to override the way I want it to happen.  Do mobile users only have access to the mobile subsite in this scenario?  If anyone needs more information from me, just let me know, I'll provide whatever I can.

    Thanks.

    Friday, November 14, 2014 6:17 PM

Answers

  • Hi smithg140,

    According to your description, my understanding is that you want to access the subsite in the mobile device and switch the site through the different redirect.

    There is a hidden feature in SharePoint called Mobility which can be actived using PowerShell Command.

    stsadmn -o activatefeature -name MobilityRedirect -url http://[your site url]

    Then, Above methods will result in the redirection of your site for mobile devices which you can also test out from the desktop browser by appending /m/ after your site URL or by appending ?mobile=1. Now, These two will redirect you to two different pages of Mobile View.

    I suggest you can use this feature to customize the mobile redirect.

    Here are some detailed articles for your reference:

    Various ways of Customizing the Mobile redirection feature in SharePoint 2010

    How to: Customize the Mobile Home Page Through Redirection

    Best Regards

    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Zhengyu Guo
    TechNet Community Support


    Monday, November 17, 2014 6:25 AM