facebook

Website direction to mobione mobile site and back again

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #341743 Reply

    rjr62
    Member

    Dear Octavio,

    I have our MobiOne website App at http://www.modernspecialties.com/mobile

    I am trying to automatically detect a mobile phone and direct it automatically to the mobile site.

    I found this code online which works very well to automatically direct our regular website to the MobiOne App when a smartphone is detected:

    <script type=”text/javascript”>
    <!–
    if (screen.width <= 699) {
    document.location = “/mobile”;
    }
    //–>
    </script>

    My problem is I can’t figure out how to change the App to return to the full website if someone chooses to do so. I have a link to the full website on the our catalog page, but it just loops back to the app instead of the full website.

    Can you help?

    Bob

    #341747 Reply

    support-michael
    Keymaster

    Hi Bob,

    An alternative is to configure your web server to handle this rather than build it into the webapp – that is how we do it here. What web server are you using? A quick google search should provide details for web server configuration to consider.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Website direction to mobione mobile site and back again

You must be logged in to post in the forum log in