fix(route/the): Always use the first page to get the latest result (#16663)

This commit is contained in:
Andvari
2024-09-08 19:40:52 +08:00
committed by GitHub
parent afa85c6437
commit d8b026f127
+1
View File
@@ -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);