I have a website available in 3 languages: Spanish (default), English & German.
If you check the source code of the Spanish version (as an example but behaviour is the same on all) homepage you can see the alternate hreflang for: Spanish, English and German but:
I expect on the Spanish Version to show only the equivalent pages in their languages so on the Spanish version it should show:
<link href="http://www.mediafish.es/de/" rel="alternate" hreflang="de" />
<link href="http://www.mediafish.es/en/" rel="alternate" hreflang="en" />
It also shows the Spanish Version as alternate hreflang which is not correct as we are already on the Spanish version so it should only link to the alternate versions English & German...
<link href="http://www.mediafish.es/de/" rel="alternate" hreflang="de" />
<link href="http://www.mediafish.es/" rel="alternate" hreflang="es" />
<link href="http://www.mediafish.es/en/" rel="alternate" hreflang="en" />
Joomla 3.6.5
Labels |
Added:
?
|
Category | ⇒ | Multilanguage |
Build | staging | ⇒ | 3.6.5 |
Closing as expected behavior.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-03 13:14:22 |
Closed_By | ⇒ | Bakual |
well ok but they write:
...the Spanish version must include a rel="alternate" hreflang="x" link...
why do they use X and not es?
Status | Closed | ⇒ | Expected Behaviour |
why do they use hreflang="x" and not hreflang="es" if they talk about the Spanish version?
It's a placeholder for the language, like back in school when you had algebra
In the examples on the page it's clear that "x" isn't a valid value.
Well ok you know that because of your experience and thanks for pointing that out :-)
...but if you start talking about algebra; at school we only used placeholders if we were talking about unknown values - but here the value is Spain so no need for "x "but "es" ;-)
This behavior is correct as per Google guidelines: