mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-12 15:41:01 +01:00
fix: topic anchors too
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user