'Redirecting to external page.' on error
[issue link]Steps to reproduce:
- Goto non-existing page
- ‘Redirecting to external page.’ is displayed for a few seconds.
- Then
error.vue
is displayed.
How can we skip displaying ‘Redirecting to external page.’?
I noticed this can be accomplished by swapping the following snippet in .nuxt/components/nuxt.js
// swap these two conditionals
if (this.nuxt._redirected) {
return h('div', [ 'Redirecting to external page.' ])
}
// If there is some error
if (this.nuxt.err) {
return h('nuxt-error', {
props: {
error: this.nuxt.err
}
})
}