From bc0ce62fd5cdd32846f3b54863c9265b822a4fee Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 8 Oct 2020 17:16:23 -0400 Subject: [PATCH] fix: topic anchors too --- public/src/modules/navigator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js index 9cafc37ebc..4ab8d83b64 100644 --- a/public/src/modules/navigator.js +++ b/public/src/modules/navigator.js @@ -383,7 +383,7 @@ define('navigator', ['forum/pagination', 'components'], function (pagination, co // Temporarily disable navigator update on scroll $(window).off('scroll', navigator.update); - const anchorId = scrollTo.find('[component="post/anchor"]').prop('id'); + const anchorId = scrollTo.find('[component="post/anchor"], [component="topic/anchor"]').prop('id'); window.location.hash = anchorId; highlightPost();