Answer the question
In order to leave comments, you need to log in
Is it possible to set an error action in @nuxtjs/router?
I want to implement a similar functionality, if the page is not found in the pages folder, make a request to the redirect api, maybe there will be a value for this page and do it. Where to configure handlers for this?
Answer the question
In order to leave comments, you need to log in
Make a page _.vue
, it will be used for all addresses unless there is a more specific rule.
In asyncData
this page, make a request to the API and, depending on the response, call either ctx.redirect
or ctx.error
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question