-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Allow to specify language and country in hreflang #45
Comments
Given the freedom people have in naming their dimensions (in regards to both key and URI segment), the best is to document how this can be adjusted according to specific needs (it's actually rather simple.) |
While working with SEO related stuff I also realized that it's not so great to not render the hreflang at all, when there are no dimensions. Text analyzers are working better if we give them at least a hint what language we have. Also I didn't understand why the lang is not rendered when in non-live mode. So I agree that we should at least have some documentation and maybe change the single language behavior. |
any news on this subject? one of my clients asked me if it's possible to render the href tag for any dimension (language and country)
|
Hi @andreas83, which feature do you mean, the In each case the generation of the identifier can be overriden in your project with Fusion. It's just hard to anticipate how people name their dimensions and what values they put in there, so I'm a bit unsure how to provide a default that would fit most projects. |
The
hreflang
value can specify a language (in ISO 639-1 format) and optionally the region (in ISO 3166-1 Alpha 2 format).We "support" that, if the dimension used for generating alternate language links (defaults to
language
) is configured to use valid pairs already (if underscores are used, we replace with dashes):de
: German content, independent of regionen-GB
: English content, for GB usersde-ES
: German content, for users in SpainIf language and country are given separately, this needs some work. The same is true if values are used that do not conform to the ISO formats required.
The text was updated successfully, but these errors were encountered: