I have two page in one directory for an iOS web app. One is index.html, the other one is detail.html.
In index.html, there is a link to detail.html like this
<a href="detail.html">
Redirect
</a>
I opened index.html in iPhone's safari, then I added index.html to home screen.Then I opened this web app from home screen. When tapped "Redirect", the web app entered background , then Safari opened detail.html and came to foreground.
How to open detail.html in web app itself and not redirect to safari? Special Thanks!