fix: fully fix the 404s

This commit is contained in:
Bjorn Beishline 2026-02-06 13:01:15 -07:00
parent c489331fc7
commit 48238ad169

View File

@ -6,11 +6,10 @@ definePageMeta({
}); });
const route = useRoute(); const route = useRoute();
const path = withoutTrailingSlash(route.path);
const { data: page } = await useAsyncData("page-" + route.path, () => { const { data: page } = await useAsyncData(`blog-${path}`, () => {
return queryCollection("blog") return queryCollection("blog").path(path).first();
.path(withoutTrailingSlash(route.path))
.first();
}); });
if (!page.value) { if (!page.value) {