Node.js based forum software built for the modern web
fix go to post if its on page
Barış Soner Uşaklıadc705439079
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.jsindex 8ce876eebe..d9f29cebcd 100644--- a/public/src/modules/notifications.js+++ b/public/src/modules/notifications.js@@ -117,10 +117,9 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'benfunction scrollToPostIndexIfOnPage(notifEl) {// Scroll to index if already in topic (gh#5873)var pid = notifEl.attr('data-pid');- var tid = notifEl.attr('data-tid');var path = notifEl.attr('data-path');var postEl = components.get('post', 'pid', pid);- if (path.startsWith(config.relative_path + '/post/') && pid && postEl.length && ajaxify.data.template.topic && parseInt(ajaxify.data.tid, 10) === parseInt(tid, 10)) {+ if (path.startsWith(config.relative_path + '/post/') && pid && postEl.length && ajaxify.data.template.topic) {navigator.scrollToIndex(postEl.attr('data-index'), true);return true;}