Skip to content

Commit ae0f2d5

Browse files
committed
Rm redirect on null content
1 parent 6d06a5e commit ae0f2d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pages/articles/[...slug].vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ const { data: page } = await useAsyncData(route.path, () => {
55
return queryCollection("content").path(route.path).first();
66
});
77
8-
// Redirect missing articles to `/`, or defined redirects to their intended location
9-
if (page.value === null) {
10-
await navigateTo({
11-
path: "/",
12-
});
13-
}
8+
//// Redirect missing articles to `/`, or defined redirects to their intended location
9+
//if (page.value === null) {
10+
// await navigateTo({
11+
// path: "/",
12+
// });
13+
//}
1414
</script>
1515

1616
<template>

0 commit comments

Comments
 (0)