-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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: trailingSlash
and child routes not working
#8423
Conversation
Maybe you could also add trailingSlash=false version of that testsuite? I guess we don't have any existing testing for it? |
@rchl I believe there is a test suit for children without trailing slash: |
|
@rchl There is also a unit/snapshot test for routes utility: https://github.com/nuxt/nuxt.js/blob/dev/packages/utils/test/route.test.js |
I don't see it testing the |
Actually it is :) Anyway agreed that snapshot couldn't cover this issue so added |
I think we should pair this PR with another one for the docs to explain what the behaviour should be as I think there are a variety of different expectations in the related issues... Happy to pick that up. |
Codecov Report
@@ Coverage Diff @@
## dev #8423 +/- ##
==========================================
- Coverage 67.93% 67.62% -0.31%
==========================================
Files 91 91
Lines 3920 3917 -3
Branches 1071 1070 -1
==========================================
- Hits 2663 2649 -14
- Misses 1017 1024 +7
- Partials 240 244 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
modification scenario is wrong. not only because rootDir can contain other projects that build parallel, but also modules may generate a file outside
Types of changes
Description
Resolves #8422 also adding dev test for 3 possible values of trailing slash
[vue-router] Named Route 'posts' has a default child route. When navigating to this named route (:to="{name: 'posts'"), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead.
Checklist: