Node.js based forum software built for the modern web
change hash take 2
Baris Soner Usakli55673782343f
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.jsindex 5ab2467b33..80aa2fa4cb 100644--- a/public/src/forum/topic.js+++ b/public/src/forum/topic.js@@ -1023,7 +1023,12 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {localStorage.removeItem("topic:" + templates.get('topic_id') + ":bookmark");} else {localStorage.setItem("topic:" + templates.get('topic_id') + ":bookmark", el.attr('data-pid'));- window.location.hash = el.attr('data-pid');++ if(history.pushState) {+ history.replaceState(null, window.location.protocol + '//' + window.location.host + window.location.pathname, '#' + el.attr('data-pid'));+ } else {+ location.hash = '#' + el.attr('data-pid');+ }}return false;}