🐛 Fix infinite redirect
This commit is contained in:
@ -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}`)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user