fix: fully fix the 404s
This commit is contained in:
parent
c489331fc7
commit
48238ad169
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user