Node.js based forum software built for the modern web
dont update title if it hasn't changed
barisusakli0b052171f0eb
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.jsindex 2ba5fb05d1..fe9196e7fb 100644--- a/public/src/client/topic/events.js+++ b/public/src/client/topic/events.js@@ -102,7 +102,7 @@ define('forum/topic/events', [topicTitle = components.get('topic/title'),breadCrumb = components.get('breadcrumb/current');- if (topicTitle.length && data.topic.title) {+ if (topicTitle.length && data.topic.title && topicTitle.html() !== data.topic.title) {var newUrl = 'topic/' + data.topic.slug + (window.location.search ? window.location.search : '');history.replaceState({url: newUrl}, null, window.location.protocol + '//' + window.location.host + config.relative_path + '/' + newUrl);