diff --git a/templates/website/src/app/(frontend)/posts/page/[pageNumber]/page.tsx b/templates/website/src/app/(frontend)/posts/page/[pageNumber]/page.tsx index e55131d7eb5..93153fa812c 100644 --- a/templates/website/src/app/(frontend)/posts/page/[pageNumber]/page.tsx +++ b/templates/website/src/app/(frontend)/posts/page/[pageNumber]/page.tsx @@ -23,7 +23,7 @@ export default async function Page({ params: paramsPromise }: Args) { const sanitizedPageNumber = Number(pageNumber) - if (!Number.isInteger(sanitizedPageNumber)) notFound() + if (!Number.isInteger(sanitizedPageNumber) || sanitizedPageNumber < 1) notFound() const posts = await payload.find({ collection: 'posts',