Open simplenotezy opened 4 years ago
@simplenotezy not yet but I would welcome a PR if you want to take a stab at it!
https://github.com/raniesantos/vue-error-page is (mostly) working for me as an integration for handling 404s in my Post & Page components.
Hello,
I don't know if it's a viable solution but I implement 404 page in the Page.vue
component directly this way :
mounted () {
if (!this.page(this.$route.params.pageSlug)) {
this.$router.push({ name: 'PageNotFound' })
}
}
And on my router/index.js
:
{
path: "/404",
name: "PageNotFound",
component: PageNotFound
},
E.g. when no matching pages are returned from the API?