It seems there is an issue with 301 redirect for the default language. When hreflang annotations are used to indicate different language version, there is usually also x-default hreflang for the homepage. But if you 301 redirect homepage then it seems search engine is detecting a broken chain of hreflangs. Check answer at https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/webmasters/BuLYKloslbc/I9BzIiYBBAAJ, specifically paragraph about redirection, the rest is not relevant here
This was already worked on in #11329 and some other prs
Actually, it seems the issue is because x-default should point to a page that returns http code 200, and not redirect. So in this case x-default should be example.com/default-lang-code (if it's not set to be removed). More info at https://hreflang.org/redirects-canonicals-cause-hreflang-problems/ and https://hreflang.org/redirection-and-international-seo/
so, for what i understand from your comments, the only thing is here is the x-default.
i have for homepage:
<link href="http://domain.tld/index.php/pt/" rel="alternate" hreflang="pt-PT" />
<link href="http://domain.tld/index.php/es/" rel="alternate" hreflang="es-ES" />
<link href="http://domain.tld/index.php/en/" rel="alternate" hreflang="en-GB" />
<link href="http://domain.tld/index.php/en/" rel="alternate" hreflang="x-default" />
so, doesn't seem a issue to me?
can you check ?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-17 11:45:36 |
Closed_By | ⇒ | chivitli |
Issue came from another module that did the override of what language filter plugin does. Sorry for wasting your time, I will close this bug report.
ok np
Labels |
Added:
?
|
I read the comment and don't understand how it's related to the redirect HTTP code.
The hreflang code you're referring cames from here: https://github.com/joomla/joomla-cms/blob/staging/plugins/system/languagefilter/languagefilter.php#L770