Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 882c045

Browse files
committed
fix firefox hash decode issue
1 parent 94eae3b commit 882c045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.mobile.navigation.pushstate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ define( [ "jquery", "./jquery.mobile.navigation", "../external/requirejs/depend!
3434

3535
state: function() {
3636
return {
37-
hash: location.hash || "#" + self.initialFilePath,
37+
hash: $.mobile.path.parseUrl( location.href ).hash || "#" + self.initialFilePath,
3838
title: document.title,
3939

4040
// persist across refresh
@@ -72,7 +72,7 @@ define( [ "jquery", "./jquery.mobile.navigation", "../external/requirejs/depend!
7272
}
7373

7474
var href, state,
75-
hash = location.hash,
75+
hash = $.mobile.path.parseUrl( location.href ).hash,
7676
isPath = $.mobile.path.isPath( hash ),
7777
resolutionUrl = isPath ? location.href : $.mobile.getDocumentUrl();
7878

0 commit comments

Comments
 (0)