Link with data-rel=”back” causes two (double) back transitions instead of a single. The issue seems to be Android related – demonstrated in 2.2 and 2.3.
page 1 -> page 2 -> page 3
If the user clicks the back link on page 3 the following will happen:
back link -> (page 2 temp) -> page 1
Attempted to disable pushStateEnabled without success
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script>
$( window ).bind( 'mobileinit', function(){
$.mobile.pushStateEnabled = false;
});
</script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
Also attempted and double back persists
<a href="/" onclick="history.back(-1)" >Back</a>
Any suggestions/update to deliver expected back functionality?
As long as your anchor tags are correct I don’t see why
$.mobile.pushStateEnabled = false;does not work.Maybe using ‘document’ as your selector instead of ‘window’ will do the trick.
Did you try?