This is a migrated thread and some comments may be shown as answers.

apply Application to remote view

2 Answers 75 Views
Application
This is a migrated thread and some comments may be shown as answers.
Jerald
Top achievements
Rank 1
Jerald asked on 04 May 2012, 03:25 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 04 May 2012, 09:56 AM
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!
0
Jerald
Top achievements
Rank 1
answered on 04 May 2012, 01:59 PM
That works great!  thanks.
Tags
Application
Asked by
Jerald
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Jerald
Top achievements
Rank 1
Share this question
or