From 812e9f16a7da53c75f8a804a8eb30524c177efbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 25 Jan 2010 12:29:17 +0000 Subject: [PATCH] Do not set hash if we're not updating frameset. --- js/helper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/helper.js b/js/helper.js index 517b1f935..b7f621126 100644 --- a/js/helper.js +++ b/js/helper.js @@ -24,6 +24,10 @@ function setURLHash(hash) { if (window.parent != window && window.parent.setURLHash) { window.parent.setURLHash(hash); } else { + /* Do not set if we're not updating frameset */ + if (window.location.pathname.substring(-9, 9) != "index.php") { + return; + } if (hash_init_done) { window.location.hash = "PMAURL:" + hash; } else {