We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025fe04 commit 262ecf0Copy full SHA for 262ecf0
pages/blog.vue
@@ -134,6 +134,16 @@ const projectsCreatedData = computed(() => {
134
135
const projectsPending = computed(() => projectsAllQuery.status.value === 'pending')
136
137
+const anythingPending = computed(() => projectsPending.value || postsPending.value)
138
+watch(anythingPending, (pending) => {
139
+ if (
140
+ !pending
141
+ && projectsLatestData.value.length === 0
142
+ && postsLatestIntoPostData.value.length === 0
143
+ )
144
+ navigateTo('/', { replace: true, redirectCode: 404 })
145
+}, { immediate: true })
146
+
147
useSeoMetaHelper({
148
title: 'Blog',
149
description: 'Helltraitor blog',
0 commit comments