🐛 Fix infinite redirect
This commit is contained in:
parent
b94e6906e1
commit
d6936f0056
@ -7,8 +7,9 @@
|
||||
<span>{{ post.author?.nick }} <span class="text-xs">@{{ post.author?.name }}</span></span>
|
||||
<span v-if="post.body?.title" class="text-md">{{ post.body?.title }}</span>
|
||||
<span v-if="post.body?.description" class="text-sm">{{ post.body?.description }}</span>
|
||||
<span v-if="!post.body?.title && !post.body?.description" class="text-sm">{{ post.author?.description
|
||||
}}</span>
|
||||
<span v-if="!post.body?.title && !post.body?.description" class="text-sm">
|
||||
{{ post.author?.description }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -103,7 +103,7 @@ if (!post.value) {
|
||||
statusCode: 404,
|
||||
statusMessage: "Post Not Found",
|
||||
})
|
||||
} else if (post.value.alias) {
|
||||
} else if (post.value.alias && !route.params.area) {
|
||||
navigateTo(`/posts/${post.value.area_alias}/${post.value.alias}`)
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ if (!post.value) {
|
||||
statusCode: 404,
|
||||
statusMessage: "Post Not Found",
|
||||
})
|
||||
} else if (post.value.alias) {
|
||||
} else if (post.value.alias && !route.params.area) {
|
||||
navigateTo(`/posts/${post.value.area_alias}/${post.value.alias}`)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user