This is the solution I'm working with. At the time of writing, it seems to be working fine, so that might help someone. However, this is just a quick fix, and for best functionality, it is best to do this on the server side.
; , JQM. ( - JQM. mobileinit , jQuery Mobile. "). , , .
<script type="text/javascript">
var needRedirect = false;
$(document).bind("mobileinit", function(){
var thisPage = location.hash;
if (thisPage != '' && thisPage != '#homepage' && thisPage != '#page1') {
needRedirect = true;
}
});
</script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
:
if (needRedirect) {
$.mobile.changePage("#homepage");
needRedirect = false;
}