mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00

Previously, for a search query with `page=11` or higher, we were quietly returning the page 10 results. The frontend app isn't affected because it sets its own limit to 10 pages, but still, this response from the search endpoint does not make sense. This change switches to returning a 400 error when the `page` parameter is above the allowed limit (a max of 10).