diff --git a/js/jquery.mobile.navigation.pushstate.js b/js/jquery.mobile.navigation.pushstate.js index 7ef8de90..96bdd15d 100644 --- a/js/jquery.mobile.navigation.pushstate.js +++ b/js/jquery.mobile.navigation.pushstate.js @@ -60,6 +60,11 @@ // Handle popstate events the occur through history changes $win.bind( "popstate", self.onPopState ); + + // if there's no hash, we need to replacestate for returning to home + if( location.hash === "" ){ + history.replaceState( { hash: location.hash, title: document.title }, document.title, location.href ); + } // Enable pushstate listening *after window onload // To ignore the initial pop that Chrome calls at onload