-
-
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(vue-app, vue-renderer, utils): respect trailingSlash
setting for payloads
#8489
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #8489 +/- ##
==========================================
- Coverage 67.95% 67.93% -0.02%
==========================================
Files 91 91
Lines 3916 3920 +4
Branches 1069 1071 +2
==========================================
+ Hits 2661 2663 +2
- Misses 1016 1017 +1
- Partials 239 240 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes for later:
- We can expose
withoutQuery
from ufo later on (or simply using new ponyfill.pathname
- We may add tests for full-static to trailing-slash PR
<% if (!nuxtOptions.router.trailingSlash) { %> | ||
path = withoutTrailingSlash(path) | ||
<% } %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be available shortly with |
Types of changes
Description
This respects the route URL so payloads won't be refreshed when
trailingSlash: true
. Note this will still refresh payloads if the link doesn't respect thetrailingSlash
settings - there is still a need for a<NuxtLink>
that respects the trailingSlash settings.closes #8488
closes #8476
Checklist:
I have added tests to cover my changes(will add tests in fix:trailingSlash
and child routes not working #8423)