I'm constructing a jQuery mobile site which has some subpages of the form
<div data-role="page" id="page1" data-theme="c">
...
</div>
<div data-role="page" id="page2" data-theme="c">
...
</div>
I would like to force any reload of the website (like pressing when F5), no matter in which subpage (e.g. https://myurl/site#page2
) the current location is, to redirect to the login page (#mainPage) instead of reloading the same subpage.
Any suggestions will be greatly appreciated! Thanks in advance!