-
-
Notifications
You must be signed in to change notification settings - Fork 1.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: avoid normalizing the fullPath #2189
Conversation
✅ Deploy Preview for vue-router canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2189 +/- ##
=======================================
Coverage 91.01% 91.01%
=======================================
Files 24 24
Lines 1135 1135
Branches 351 351
=======================================
Hits 1033 1033
Misses 63 63
Partials 39 39 ☔ View full report in Codecov by Sentry. |
Hmm, I suspect this change to break some routing in an i18n'd nuxt app of mine: dargmuesli/creal/pull/451. I get no error in the application though, so I'm not sure if another library needs to adapt. Just want to point this out as meta info, let's see if someone creates a more specific issue faster than me. Explanation on the failling pipeline: a playwright test fails which checks for a router navigation to happen when a different language is selected in the website's footer. So if you want to test it yourself, you can checkout that branch and try to change the language in the footer. WIth |
Thanks for the info, if you create a boiled down repro without external deps that would be really helpful |
@posva Here's a reproduction using the Nuxt i18n starter, it shows the routes resolved for each language working with Let me know if I can provide more information! Related nuxt-modules/i18n#2920 |
Yes, a reproduction without i18n and Nuxt would help. The repro with i18n still looks like a black box without any errors so I can't know what is happening |
I understand this isn't particularly helpful for debugging but I figured this would at least demonstrate this release contains breaking changes. Hopefully I have time to dig into why this is breaking in our case and provide a more minimal reproduction, in the meantime Nuxt i18n users will have to pin vue-router to |
Hi. Here's an example: I pass path in the custom router-link component (I use my own logic without vue-i18n):
Inside AppRouterLink component:
Instead of /en/custom/path I get /custom/path and when I go to such a link the router does not work and the site crashes. With version 4.3.0 everything works fine. |
I figured out what was causing this to break in the i18n module and have a fix lined up (nuxt-modules/i18n#2922) that should resolve the issue for us and will work with both vue-router In our case we were resolving localized routes by replacing a resolved route's @DavyJones21 |
I reverted this and released a new patch |
@BobbieGoede Alternatively, I can add the locale to the path so that the resolving is immediately successful. Thanks for help. |
Close #2187