nuxt-modules / i18n

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

fix: `NuxtLinkLocale` ignoring `href` prop #2751

Closed BobbieGoede closed 9 months ago

BobbieGoede commented 9 months ago

🔗 Linked issue

❓ Type of change

📚 Description

Resolves #2747

Changes NuxtLinkLocale to treat href the same as to if set. Triggers warning if both are set, in which case to is used, does not pass href to wrapped NuxtLink to prevent triggering warning twice.

📝 Checklist