/packages shows nonexistent 2nd page when omitting arch query parameter
The page for https://pkgs.alpinelinux.org/packages?arch=&maintainer=Michael%20M searches for the packages I'm listed as a maintainer for on all arches. There's over 50 listings, so apkbrowser correctly shows a link to a second page of search results.
When I limit to search to only packages for x86_64 and go to https://pkgs.alpinelinux.org/packages?arch=x86_64&maintainer=Michael%20M there are now less than 50 listings and they all fit on one page, so apkbrowser correctly does not show a link to a second page (because there is no second page).
Now here's the problem: when I remove the arch
query parameter altogether, apkbrowser searches on the default arch (which is x86_64
). The page is https://pkgs.alpinelinux.org/packages?maintainer=Michael%20M and the listings are correctly identical to when I explicitly search on x86_64
, but now apkbrowser incorrectly shows a link to a second page. There is no second page so clicking on the link shows a no search results found error.