Possible regression with custom domains and localized paths #3058
Labels
domain
❗ p4-important
Priority 4: bugs that violate documented behavior, or significantly impact perf
v8
v9
Environment
Darwin
v20.15.0
3.12.4
3.12.0
2.9.7
bun@1.1.22
-
compatibilityDate
,devtools
,modules
,i18n
@nuxtjs/i18n@8.3.3
-
Reproduction
https://github.com/darioielardi/nuxt-i18n-play
On
main
you'll find@nuxtjs/i18n@^8.3.3
installed.To test with
@nuxtjs/i18n@8.2.0
switch to thenuxt-i18n-v8.2
branch.To test different domains you need to add this to your
hosts
file:Describe the bug
My use case is an application with a different domain for each locale, and localized paths. For example:
my-website.com/travels
my-website.it/viaggi
my-website.fr/voyages
Until
v8.2.0
, I would setdifferentDomains: true
, set up the locales with relative domains, add localized paths withcustomRoutes: 'config'
+pages
config, and it worked perfectly.From this PR (as someone noted in the comment) that doesn't work anymore, as it will add a locale prefix to every path, which is of course redundant and undesired in my case.
Adding
strategy: 'no_prefix'
doesn't work with custom paths (as it's stated in the docs), but in the case of different domains I think it's reasonable to expect that the prefix is omitted anyway (as it was inv8.2.0
), or at least to have some way to configure that.Is the new behavior unexpected (and therefore a bug) or I'm missing something?
Let me know if you need any more context, and thanks for your great work!
Additional context
Related issue: #2729
Logs
No response
The text was updated successfully, but these errors were encountered: