Static GitHub Issues

[3018] feature request : provide context in validator method of pages

prev: Dependency not found (although installed)
next: How to delete the defer in the script tag

currently the validator method in pages https://nuxtjs.org/api/pages-validate does not have context passed in its parameters. It would be better if this could be implemented

validate(context) {
  console.log(context)  // { app, redirect, store, ...}
  return true // if the params are valid
  return false // will stop Nuxt.js to render the route and display the error page
}

Actually, I need the redirect function

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2615">#c2615</a>)</em></sub></div>