Correctly count wiki pages in sidebar
The existing code had two problems: - We were only counting toplevel entries, not individual pages. - We were showing the "View All Pages" button when the number of pages exactly matches the limit, even when there are no further pages. This is now resolved by loading one page more than the limit, and using the result count to determine if we have more pages.
Showing
Please register or sign in to comment