This seems like the obvious solution - however on Safari/iOS5 when doing that the browser does not reload the page correctly.
I've tried to add some random string to the link to make it think it's a new url but it also didn't work - it seems that maybe the launch function doesn't run again. I also tried to add a 'no-cache' meta tag.

The redirect is done like this:
window.location.replace/assign(appPath);