Search: Last Page Number is incorrect in Pagination
Submitted by me@..@..oes.de
Assigned to Yuri Konotopov @nE0sIghT
Link to original bug (#789581)
Description
Created attachment 362441 3 Screenshots from the pagination, displaying a wrong last page number if you are not at the "real" last page
If you search for an extension, for example with the keyword "window", the last page is shown in the pagination as page 71. But you will just find results on the first 17 pages, from page 18 on they are blank.
As long as you are not at page 17, page 71 will always be the last page. If you navigate to page 17, this will be displayed as last page.
The Searchresult endpoint returns a wrong numpages, I think the fault lies in: https://git.gnome.org/browse/extensions-web/tree/sweettooth/extensions/views.py#n213
Attachment 362441, "3 Screenshots from the pagination, displaying a wrong last page number if you are not at the "real" last page":
Version: current