EvanAgee / vuejs-wordpress-theme-starter

A WordPress theme with the guts ripped out and replaced with Vue.
https://vuewp.com/
1.6k stars 282 forks source link

Do we have an 404 page? #103

Open simplenotezy opened 4 years ago

simplenotezy commented 4 years ago

E.g. when no matching pages are returned from the API?

EvanAgee commented 4 years ago

@simplenotezy not yet but I would welcome a PR if you want to take a stab at it!

harrisonfm commented 3 years ago

https://github.com/raniesantos/vue-error-page is (mostly) working for me as an integration for handling 404s in my Post & Page components.

JeromeDevillers commented 2 years ago

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
 },