From fed63345caaee22b3e97c03c89afd8c36d34f1bc Mon Sep 17 00:00:00 2001 From: Franzz Date: Sun, 8 Dec 2019 09:51:19 +0100 Subject: [PATCH] Fix hash parsing 2 --- jquery/databap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");