fix: fully fix the 404s
This commit is contained in:
parent
c489331fc7
commit
48238ad169
@ -6,11 +6,10 @@ definePageMeta({
|
||||
});
|
||||
|
||||
const route = useRoute();
|
||||
const path = withoutTrailingSlash(route.path);
|
||||
|
||||
const { data: page } = await useAsyncData("page-" + route.path, () => {
|
||||
return queryCollection("blog")
|
||||
.path(withoutTrailingSlash(route.path))
|
||||
.first();
|
||||
const { data: page } = await useAsyncData(`blog-${path}`, () => {
|
||||
return queryCollection("blog").path(path).first();
|
||||
});
|
||||
|
||||
if (!page.value) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user