streetlives / yourpeer.nyc

The open source repository behind the yourpeer.nyc web application
https://yourpeer.nyc
MIT License
0 stars 0 forks source link

Next page bug for search results - only one page visible #79

Open adambard1 opened 4 months ago

adambard1 commented 4 months ago

When looking at search results for e.g., https://yourpeer.nyc/locations?search=haircut there are (only) 4 results on one list page and the bottom of the page says there are 3 pages of results. However, when you click on the next page, it takes you out of the search results and into p2 of 61 - presumably all pages for all locations. See images below.

Screenshot 2024-06-13 at 12 39 32
adambard1 commented 4 months ago

checking another search result @jbeard4 ... https://yourpeer.nyc/locations?search=Education it's clear that one part of the issue is that all search results are being returned on one page (so, for these results you have to scroll through a long list), and the number of results is being pulled for the number of pages digit, rather than having results allocated across pages with (15? 20? idk the default) results per page.

Screenshot 2024-06-13 at 13 24 24
doobneek1 commented 2 months ago

@adambard1 to be done

doobneek1 commented 2 months ago

@adambard1 seems to be ok