leverage the path helpers to get this right

This commit is contained in:
John Bender 2011-08-16 13:25:04 -07:00
parent 1a4dd41293
commit b41b0573d2

View file

@ -30,7 +30,7 @@
// only replaceState when pushState support is present and
// the hash doesn't represent an embeded page
if( $.support.pushState && location.hash.search("/") > 0) {
if( $.support.pushState && !$.mobile.path.isEmbeddedPage(location.hash) ) {
var hash = location.hash || "#" + self.initialFilePath,
href = hash.replace( "#", "" );