Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we have an 404 page? #103

Open
simplenotezy opened this issue Feb 6, 2020 · 3 comments
Open

Do we have an 404 page? #103

simplenotezy opened this issue Feb 6, 2020 · 3 comments

Comments

@simplenotezy
Copy link
Contributor

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

@EvanAgee
Copy link
Owner

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

@harrisonfm
Copy link

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

@JeromeDevillers
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants