From 72ce65767e4b06f42cd06efbf357f2eaf6e99030 Mon Sep 17 00:00:00 2001 From: John Bender Date: Tue, 16 Aug 2011 12:55:03 -0700 Subject: [PATCH] support embedded pages as a hash since the concatenated form represents a file --- js/jquery.mobile.navigation.pushstate.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.navigation.pushstate.js b/js/jquery.mobile.navigation.pushstate.js index 493b120e..53083393 100644 --- a/js/jquery.mobile.navigation.pushstate.js +++ b/js/jquery.mobile.navigation.pushstate.js @@ -28,9 +28,11 @@ onHashAlter: function( e ) { self.hashchangeFired = true; - if( $.support.pushState ) { + // only replaceState when pushState support is present and + // the hash doesn't represent an embeded page + if( $.support.pushState && location.hash.search("/") > 0) { var hash = location.hash || "#" + self.initialFilePath, - href = hash.replace( "#", "" ); + href = hash.replace( "#", "" ); //support dialog urls if( href ) {