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