Make a site with multiple languages
The main/default language for a page should have a hreflang="x-default" tag as explained here:
http://googlewebmastercentral.blogspot.nl/2013/04/x-default-hreflang-for-international-pages.html
Additionally each page should have all languages with their respective URL's listed, including its own URL. (currently it only lists different ones)
Only the other languages have a hreflang tag set, the loaded page language is not included.
Additionally the default language is not marked with an "x-default" tag.
Not relevant
I've discovered this issue trough using http://seorch.eu/
I also suggest reading:
http://moz.com/learn/seo/hreflang-tag
For best practises.
We can patch though to add as alternate, when loading a home page as well as associations, the page displayed itself. Not really sure we should.
Priority | Urgent | ⇒ | Medium |
Rest priority according to https://docs.joomla.org/Bug_and_Issue_Tracker_Priority
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-05-21 13:36:14 |
Closed_By | ⇒ | infograf768 |
Build | any | ⇒ | staging |
See PR #6963
closing as we have a PR
Set to "closed" on behalf of @infograf768 by The JTracker Application at issues.joomla.org/joomla-cms/6809
@margieoestreich please open a new Issue as Comments on closed Issues didn't get much Notice and also write English, thanks.
This is not an issue, it is a spam imho
thanks @infograf768. @brianteeman can you please delete the Spam-Comment?
In staging, the alternate was corrected as it was broken since 3.4.0.
See #6569
It will be available in 3.4.2
At reading your post, I see an issue when " Remove URL Language Code" is set to yes in the languagefilter plugin.
In that case the default site language IS the domain and we may get for the home page
<link href="http://localhost:8888/testwindows/trunkgitnew/" rel="alternate" hreflang="en-GB" />
when the site default language is en-GB and we are on another language page.
I doubt we could also add...
<link rel="alternate" href="http://localhost:8888/testwindows/trunkgitnew/" hreflang="x-default" />
the other hreflang are fine:
FYI, I am here on the Macedonian home page:
I get:
<base href="http://localhost:8888/testwindows/trunkgitnew/mk/" />
and
<link href="/testwindows/trunkgitnew/mk/" rel="canonical" />