From d8b026f1270600e41b2269b7cb865a2e26ee536c Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:40:52 +0800 Subject: [PATCH] fix(route/the): Always use the first page to get the latest result (#16663) --- lib/routes/the/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/the/index.ts b/lib/routes/the/index.ts index 76bee65ca..d9239cc1f 100644 --- a/lib/routes/the/index.ts +++ b/lib/routes/the/index.ts @@ -23,6 +23,7 @@ export const handler = async (ctx) => { apiSearchParams.append('_embed', 'true'); apiSearchParams.append('per_page', String(limit)); + apiSearchParams.append('page', '1'); const apiUrl = bakeUrl(`${apiSlug}/posts`, rootUrl, apiSearchParams); const currentUrl = bakeUrl(getFilterParamsForUrl(filtersWithPair) ?? '', rootUrl, searchParams);