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
Hi,
I need to exclude a few pages from some locales and prevent hreflang tags from being created for them.
I'm struggling to figure out how to do this, but I found this guide on Ignoring Localized Routes: https://i18n.nuxtjs.org/docs/guide/ignoring-localized-routes. I have three locales ['it', 'en', 'en-us'] and I'm trying to enable only 'it' and 'en' for the page with the following setup:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I need to exclude a few pages from some locales and prevent hreflang tags from being created for them.
I'm struggling to figure out how to do this, but I found this guide on Ignoring Localized Routes: https://i18n.nuxtjs.org/docs/guide/ignoring-localized-routes. I have three locales ['it', 'en', 'en-us'] and I'm trying to enable only 'it' and 'en' for the page with the following setup:
This should remove ['en-us'].
Here is my head configuration:
I expected that this would remove the en-us hreflang and SEO references, but it hasn’t.
So, how can I prevent rendering i18n SEO attributes for certain locales to avoid SEO issues from crawlers?
Any suggestions would be appreciated!
Thanks and kind regards,
Davide
Beta Was this translation helpful? Give feedback.
All reactions