mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-27 15:23:59 +00:00
leverage the path helpers to get this right
This commit is contained in:
parent
1a4dd41293
commit
b41b0573d2
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
// only replaceState when pushState support is present and
|
// only replaceState when pushState support is present and
|
||||||
// the hash doesn't represent an embeded page
|
// 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,
|
var hash = location.hash || "#" + self.initialFilePath,
|
||||||
href = hash.replace( "#", "" );
|
href = hash.replace( "#", "" );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue