Query Pagination Previous block appears incorrectly when navigating to page outside of the query's range. #67748
Closed
3 of 6 tasks
Labels
[Block] Query Loop
Affects the Query Loop Block
[Block] Query Pagination
Affects the Query Pagination Block - used for pagination within the Query Loop Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
This is a standard Query Loop block in the TT5 theme. We still show the Query Pagination Previous block whenever a user navigates to a page outside the query's range. However, as there are no results, the block does not make much sense to be shown.
Step-by-step reproduction instructions
http://example.com&query-5-page=99999999
Screenshots, screen recording, code snippet
Screen.Recording.2024-12-05.at.13.47.07.mov
Environment info
trunk
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: