Skip to content
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

Routes from different domains are mixed #3226

Open
cernymatej opened this issue Nov 13, 2024 · 0 comments
Open

Routes from different domains are mixed #3226

cernymatej opened this issue Nov 13, 2024 · 0 comments

Comments

@cernymatej
Copy link
Contributor

Environment

  • Operating System: Darwin
  • Node Version: v20.9.0
  • Nuxt Version: 3.14.159
  • CLI Version: 3.15.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: default
  • Runtime Modules: @nuxtjs/[email protected]
  • Build Modules: -

Reproduction

https://github.com/cernymatej/i18n-domain-routes

Describe the bug

When a project uses different domains to separate localizations and the routes are translated using defineI18nRoute(), the routes from other locales are available in every locale as well.
For example, let's say I have route /about available on foo.com and /o-nas on foo.sk. When I go to foo.sk/about, it will still work.

defineI18nRoute({
    paths: {
        en: '/about',
        sk: '/o-nas'
    }
})

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant