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
fix(vue-app): handle server-side routing errors #7801
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #7801 +/- ##
=======================================
Coverage 68.89% 68.89%
=======================================
Files 90 90
Lines 3838 3838
Branches 1038 1038
=======================================
Hits 2644 2644
Misses 970 970
Partials 224 224
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
These changes will imply that users should never do Note that in the browser, nothing will happen if a user does |
Thanks for PR @matthieusieben ❤️ |
Types of changes
Description
Resolves: #7798
https://github.com/nuxt/nuxt.js/blob/4caffb04ab9309fb334f68739c61b73f8c325a05/packages/vue-app/template/index.js#L248-L268
This introduces a fix for 2 use cases:
next(err)
in a router guard. This will generate a 500 error.next(false)
in a router guard. This will:context.error()
Checklist: