apply Application to remote view

3 posts, 1 answers
  1. Jim
    Jim avatar
    6 posts
    Member since:
    Apr 2007

    Posted 03 May 2012 Link to this post

    Is there a way to test if a remote view was navigated to directly and if it was, load it into the Application? For example, the following page was indexed in google...
    http://demos.kendoui.com/content/mobile/application/play-music.html 

    but the page for the Application would be...
    http://demos.kendoui.com/mobile/application/index.html#../../content/mobile/application/play-music.html  

    thanks :)

  2. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 04 May 2012 Link to this post

    Hello,

    There are many ways to mitigate this. One (pure client-side) approach would be to put something like that in a script inside the head element of the remote view:

    <head>
    <script>
       location.href ="/index.html#../content/mobile/application/play-music.html";
    </script>

    This will allow the google bot to index the page content, while regular users will be redirected to the mobile application with the remote view set. At the same time, when the application requests the remote view, the script in the head tag will not be evaluated.

    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Jim
    Jim avatar
    6 posts
    Member since:
    Apr 2007

    Posted 04 May 2012 Link to this post

    That works great!  thanks.
Back to Top