I have an AJAX based web app for iPhone. This app is mainly for watching videos. The user navigates some menus and then gets to a list of videos. On the video list, I have some code like this:
<a href="javascript:window.location='video.mp4'>Video Link</a>
On an iPhone, in Mobile Safari, this link opens the video and, after the video is over or the user clicks on OK, the video closes and the video list remains as it was before launching the video. This is the desired behavior.
When the app is used as a standalone app (add to home screen), after the video is closed the page is reloaded breaking the previous navigation.
Is there a way to prevent this from happening?