fix: topic anchors too

This commit is contained in:
Julian Lam
2020-10-08 17:16:23 -04:00
parent 6ddc233d32
commit bc0ce62fd5

View File

@@ -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();