diff --git a/js/jquery.mobile.navigation.pushstate.js b/js/jquery.mobile.navigation.pushstate.js index f233df5b..913cc70d 100644 --- a/js/jquery.mobile.navigation.pushstate.js +++ b/js/jquery.mobile.navigation.pushstate.js @@ -15,8 +15,7 @@ oldRegisterInternalEvents(); // Initial href without hash becomes base for hash changes - // TODO - get this value from $.mobile.path ? - var initialFilePath = location.href.split( "#" )[0].match( /[^\/]*\/\/[^\/]+(.*)/ ) && RegExp.$1, + var initialFilePath = location.pathname, // Begin with popstate listening disabled, since it fires at onload in chrome popListeningEnabled = false,