Skip to content

Commit

Permalink
fix(route/the): Always use the first page to get the latest result (D…
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Sep 8, 2024
1 parent afa85c6 commit d8b026f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/routes/the/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8b026f

Please sign in to comment.