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

Commit 94eae3b

Browse files
committed
handle issue with Firefox auto decoding location.hash
1 parent 3bc0656 commit 94eae3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,9 @@ define( [
14781478

14791479
//hashchange event handler
14801480
$window.bind( "hashchange", function( e, triggered ) {
1481-
$.mobile._handleHashChange( location.hash );
1481+
// Firefox auto-escapes the location.hash as for v13 but
1482+
// leaves the href untouched
1483+
$.mobile._handleHashChange( path.parseUrl(location.href).hash );
14821484
});
14831485

14841486
//set page min-heights to be device specific

0 commit comments

Comments
 (0)