?
avatar gijs007
gijs007
20 Apr 2015

Steps to reproduce the issue

Make a site with multiple languages

Expected result

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)

Actual result

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.

System information (as much as possible)

Not relevant

Additional comments

I've discovered this issue trough using http://seorch.eu/

screen shot 2015-04-20 at 14 09 22

I also suggest reading:
http://moz.com/learn/seo/hreflang-tag
For best practises.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar gijs007 gijs007 - open - 20 Apr 2015
avatar infograf768
infograf768 - comment - 21 Apr 2015

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:

<link href="http://localhost:8888/testwindows/trunkgitnew/fr/" rel="alternate" hreflang="fr-FR" />
  <link href="http://localhost:8888/testwindows/trunkgitnew/de/" rel="alternate" hreflang="de-DE" />
  <link href="http://localhost:8888/testwindows/trunkgitnew/it/" rel="alternate" hreflang="it-IT" />
  <link href="http://localhost:8888/testwindows/trunkgitnew/es/" rel="alternate" hreflang="es-ES" />
  <link href="http://localhost:8888/testwindows/trunkgitnew/ta/" rel="alternate" hreflang="ta-IN" />

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" />

avatar infograf768
infograf768 - comment - 21 Apr 2015

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.

avatar brianteeman brianteeman - change - 22 Apr 2015
Priority Urgent Medium
avatar brianteeman
brianteeman - comment - 22 Apr 2015
avatar infograf768 infograf768 - change - 21 May 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-05-21 13:36:14
Closed_By infograf768
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2015
Build any staging
avatar joomla-cms-bot joomla-cms-bot - close - 21 May 2015
avatar infograf768
infograf768 - comment - 21 May 2015

See PR #6963

closing as we have a PR


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6809.

avatar infograf768
infograf768 - comment - 21 May 2015
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Jul 2018

@margieoestreich please open a new Issue as Comments on closed Issues didn't get much Notice and also write English, thanks.

avatar infograf768
infograf768 - comment - 18 Jul 2018

This is not an issue, it is a spam imho

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Jul 2018

thanks @infograf768. @brianteeman can you please delete the Spam-Comment?

Add a Comment

Login with GitHub to post a comment