nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.75k stars 483 forks source link

`NuxtLinkLocale` doesn't transform href prop #2747

Closed warflash closed 9 months ago

warflash commented 9 months ago

Environment

Reproduction

https://stackblitz.com/edit/github-jzeqrh-duyfnr?file=src%2Fpages%2Findex.vue,nuxt.config.ts,src%2Fpages%2Ftest%2FdefinePage.vue

Describe the bug

Passing an url to the href prop of the NuxtLinkLocale component doesn't prepend the current locale. Since it's an alias as stated in the nuxt docs I feel like the behaviour should be the same across both to and href

Additional context

No response

Logs

No response