Hreflang Tags with Errors. Need Help?

Few days ago, I have added Hreflang Tags into my website:

But today, I got an error message on Google Webmaster. Please see the attached screenshots.

Please advice me how to resolve this error.

I think you’ll get a better response in the HTML & CSS forum for this question, so I’ll move it over there.

I’m not sure what “no return tags” means, but I’m guessing the site with the one language doesn’t have a corresponding tag pointing back to the other.

Missing confirmation links: If page A links to page B, page B must link back to page A. If this is not the case for all pages that use hreflang annotations, those annotations may be ignored or not interpreted correctly.

2 Likes

I read this statement before asking question here. But didn’t understand exactly what should I need to do? Is this (If page A links to page B, page B must link back to page A.) refers to Internal linking?

I have had similar GWT href nofications and a google search:

quote-start

It's a good idea to provide a generic URL for geographically 
unspecified users if you have several alternate URLs targeted at users 
with the same language, but in different locales. For example, you may 
have specific URLs for English speakers in Ireland (en-ie), Canada (en-ca), and Australia (en-au), but want all other English speakers to see your generic English (en) page, and everyone else to see the homepage. In this case you should specify the generic English-language (en) page for searchers in, say, the UK. You can annotate this cluster of pages using a Sitemap file or using HTML link tags like this:

<link rel="alternate" href="http://example.com/en-ie" hreflang="en-ie" />
<link rel="alternate" href="http://example.com/en-ca" hreflang="en-ca" />
<link rel="alternate" href="http://example.com/en-au" hreflang="en-au" />
<link rel="alternate" href="http://example.com/en" hreflang="en" />

For language/country selectors or auto-redirecting homepages, you should
 add an annotation for the hreflang value "x-default" as well:

<link rel="alternate" href="http://example.com/" hreflang="x-default" />

quote-end


I applied the following and validated using the AMP validator - which is a remarkable strict validator and the page validation passed OK:

<!DOCTYPE HTML>
<html amp lang="en-usa">
<head>
<meta charset="utf-8">
<link rel="alternate" href="/jotd/1583" hreflang="en-us">
<link rel="alternate" href="/jotd/1583" hreflang="en-gb">
1 Like

@John_Betond I would really appreciate if you check the attached screenshot and let me know what is wrong?

It is not possible to validate an image.

Try the W3 Validator:

https://validator.w3.org/nu/

Copy and paste errors and warnings into a Google Search. I am sure others have had similar problems.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.