mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
fix: closes #11731, set postIndex on pagination
This commit is contained in:
@@ -151,10 +151,8 @@ define('forum/topic', [
|
||||
const bookmark = ajaxify.data.bookmark || storage.getItem('topic:' + tid + ':bookmark');
|
||||
const postIndex = ajaxify.data.postIndex;
|
||||
updateUserBookmark(postIndex);
|
||||
if (postIndex > 1) {
|
||||
if (components.get('post/anchor', postIndex - 1).length) {
|
||||
return navigator.scrollToPostIndex(postIndex - 1, true, 0);
|
||||
}
|
||||
if (navigator.shouldScrollToPost(postIndex)) {
|
||||
return navigator.scrollToPostIndex(postIndex - 1, true, 0);
|
||||
} else if (bookmark && (
|
||||
!config.usePagination ||
|
||||
(config.usePagination && ajaxify.data.pagination.currentPage === 1)
|
||||
|
||||
Reference in New Issue
Block a user