You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've configured a few locales (en, nl, ja) en enabled some of those locales on some domains.
The nl.localhost domain has nl + en, the ja.localhost domain has ja + en, and the en.localhost domain has en.
If I now visit ja.localhost, I expected the hreflang attributes (And other seo tags) to only references the locales I've enabled for that domain.
Instead, I get all the locales, so that creates invalid hreflang tags like 'nl.localhost/ja', causing server errors during SEO crawling.
Maybe related, but availableLocales from useI18n() also reports all the locales instead of the ones from the custom domain.
Additional context
Together with the existing issue that hreflang tags get added automatically by setI18nParams() (so even when not calling useLocaleHead()), they get added on every page, and contain invalid links and I can't turn them off (Without ugly hacks using useActiveHead()).
Logs
The text was updated successfully, but these errors were encountered:
Environment
Linux
v22.14.0
3.15.4
3.21.1
2.10.4
[email protected]
-
extends
,devtools
,imports
,site
,experimental
,$production
,srcDir
,runtimeConfig
,components
,eslint
,modules
,radix
,dayjs
,icon
,prepare
,formkit
,tailwindcss
,image
,i18n
,statamic
,multiTenancy
,linkChecker
,sitemap
,robots
,app
,compatibilityDate
[email protected]
,@nuxtjs/[email protected]
,@nuxt/[email protected]
,[email protected]
,@formkit/[email protected]
,~/modules/nuxt-multi-tenancy
,radix-vue/[email protected]
,@vueuse/[email protected]
-
Reproduction
I've tried a little reproduction, but it can't show the problem, since it's multi-domain related.
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-mskkov9l?file=pages%2Findex.vue
Describe the bug
I've configured a few locales (en, nl, ja) en enabled some of those locales on some domains.
The nl.localhost domain has nl + en, the ja.localhost domain has ja + en, and the en.localhost domain has en.
If I now visit ja.localhost, I expected the hreflang attributes (And other seo tags) to only references the locales I've enabled for that domain.
Instead, I get all the locales, so that creates invalid hreflang tags like 'nl.localhost/ja', causing server errors during SEO crawling.
Maybe related, but
availableLocales
from useI18n() also reports all the locales instead of the ones from the custom domain.Additional context
Together with the existing issue that hreflang tags get added automatically by setI18nParams() (so even when not calling useLocaleHead()), they get added on every page, and contain invalid links and I can't turn them off (Without ugly hacks using useActiveHead()).
Logs
The text was updated successfully, but these errors were encountered: