diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 6a4e2439c22..3c96788c05c 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -77,7 +77,7 @@ //just return the url without an initial # stripHash: function( url ) { - return url.replace( /^#/, "" ); + return encodeURI(url.replace( /^#/, "" )); }, //remove the preceding hash, any query params, and dialog notations