Permalink
Browse files

fix firefox hash decode issue

  • Loading branch information...
1 parent 94eae3b commit 882c04592ed667dad7e79d474668617b5fc8903e @johnbender johnbender committed Jul 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.navigation.pushstate.js
@@ -34,7 +34,7 @@ define( [ "jquery", "./jquery.mobile.navigation", "../external/requirejs/depend!
state: function() {
return {
- hash: location.hash || "#" + self.initialFilePath,
+ hash: $.mobile.path.parseUrl( location.href ).hash || "#" + self.initialFilePath,
title: document.title,
// persist across refresh
@@ -72,7 +72,7 @@ define( [ "jquery", "./jquery.mobile.navigation", "../external/requirejs/depend!
}
var href, state,
- hash = location.hash,
+ hash = $.mobile.path.parseUrl( location.href ).hash,
isPath = $.mobile.path.isPath( hash ),
resolutionUrl = isPath ? location.href : $.mobile.getDocumentUrl();

0 comments on commit 882c045

Please sign in to comment.