vuejs-wordpress-theme-starter icon indicating copy to clipboard operation
vuejs-wordpress-theme-starter copied to clipboard

Do we have an 404 page?

Open simplenotezy opened this issue 5 years ago • 3 comments

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

simplenotezy avatar Feb 06 '20 22:02 simplenotezy

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

EvanAgee avatar Feb 18 '20 15:02 EvanAgee

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

harrisonfm avatar Nov 25 '20 01:11 harrisonfm

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

JeromeDevillers avatar Nov 14 '21 18:11 JeromeDevillers