Thruk
Thruk copied to clipboard
Switching page size on the last page returns empty page
Describe the bug Increasing the page size from the dropdown to a page size where the current page number does not exist results in an empty result.
Thruk Version Thruk 2.44.3
To Reproduce
- open a search result with 400 items
- select 100 items per page
- navigate to page 4
- select 200 items per page
- observe the empty result page, without a way to switch the page size again (only the browser back button works)
Expected behavior Thruk recognizes, that with a pagesize of 200 no pages 3 and 4 will exist, so it will switch the user to the last page with the new pagesize
Screenshots Demonstration with 109 results and pagesize switch 100->250: after step 3: step 5:
Desktop (please complete the following information):
- Browser: Chrome
- Version 97.0.4692.99 (Official Build) (64-bit)
Additional context Add any other context about the problem here.
Thanks for your report. This should be fixed in the upcoming Thruk 3. Beta/preview is available already in the testing repository if you want to have a look.
this should be fine now.