diff --git a/jquery/databap.js b/jquery/databap.js index e19f2ff..e4e44e5 100755 --- a/jquery/databap.js +++ b/jquery/databap.js @@ -99,7 +99,7 @@ function Databap() if(!hash) return decodeURIComponent(window.location.hash.slice(1)); else { - window.location.hash = (hash.substr(0, 1)=='#'?'':'#')+hash; + window.location.hash = '#'+encodeURIComponent(hash.slice(hash.substr(0, 1)=='#'?1:0)); //favicon, bug firefox var link = $('link[rel="shortcut icon"]').remove().attr("href");