mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-07-31 05:52:59 +02:00
fix: redirect category routes to search route
This commit is contained in:
@@ -53,6 +53,13 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
if (!this.isVisible && this.$root.$page.frontmatter.type) {
|
||||
const type = this.$root.$page.frontmatter.type
|
||||
|
||||
// path is relative to support ipfs sub path deployments
|
||||
return this.$router.replace({ path: `../?category=${type.slug}` })
|
||||
}
|
||||
|
||||
if (!this.isVisible) {
|
||||
// path to 404 is relative to support ipfs sub path deployments
|
||||
return this.$router.replace({ path: '../404' })
|
||||
|
||||
Reference in New Issue
Block a user