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

<NuxtLinkLocale> Doesn't Use Default Config #3182

Open
yeganemehr opened this issue Oct 18, 2024 · 0 comments · May be fixed by #3183
Open

<NuxtLinkLocale> Doesn't Use Default Config #3182

yeganemehr opened this issue Oct 18, 2024 · 0 comments · May be fixed by #3183

Comments

@yeganemehr
Copy link

yeganemehr commented Oct 18, 2024

Environment

  • Operating System: Linux
  • Node Version: v20.10.0
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: compatibilityDate, devtools, css, modules, i18n, runtimeConfig, app, site, seo, robots, sitemap, experimental
  • Runtime Modules: @nuxtjs/[email protected], @vesp/[email protected], @nuxtjs/[email protected]
  • Build Modules: -

Reproduction

Here it is your reproduction repo: https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-bwrcuz
You can change experimental.defaults.nuxtLink.trailingSlash in nuxt.config.ts but nothing change for the link in index page.

Describe the bug

It looks like the <NuxtLinkLocale> component from the module isn’t picking up the default config set for <NuxtLink> in nuxt.config.ts under experimental.defaults.nuxtLink.
While <NuxtLink> uses the config as expected, the extended <NuxtLinkLocale> component ignores it.

I'll send a PR to fix this issue.

@yeganemehr yeganemehr linked a pull request Oct 18, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant