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 with an attribute target="_blank" does not respect the locale prefix #3252

Open
rvfakie opened this issue Nov 30, 2024 · 0 comments

Comments

@rvfakie
Copy link

rvfakie commented Nov 30, 2024

Environment

- Operating System: Darwin
- Node Version:     v22.11.0
- Nuxt Version:     3.13.2
- CLI Version:      3.16.0
- Nitro Version:    2.10.4
- Package Manager:  [email protected]
- Builder:          -
- User Config:      default
- Runtime Modules:  @nuxtjs/[email protected], @pinia/[email protected]
- Build Modules:    -

Reproduction

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-l8bdri?file=pages%2Ftest.vue,pages%2Findex.vue but it won't work in stackblitz so it needs to be reproduced in local environment

Describe the bug

When using <NuxtLinkLocale> with to="/some-url-in-your-application" with target="_blank", locale prefix is ​​not inserted in the resulting URL.

Additional context

In my opinion prefix should be added (or omitted if it is a default locale) as I use <NuxtLinkLocale> here with exact purpose to direct to my application. Otherwise I would have used just an ordinary <a> tag or even <NuxtLink>

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