Mobile app version of vmapp.org
Login or Join
Hamaas447

: Receiving "no return tags (sitemaps)" error in Google Search Console should I add hreflang="en" to sitemap XML file? Under my Google Search Console I'm receiving a 'es' - no return tags (sitemaps)

@Hamaas447

Posted in: #GoogleSearchConsole #Hreflang #Internationalization #XmlSitemap

Under my Google Search Console I'm receiving a 'es' - no return tags (sitemaps) error for:


Originating URL: /en/about-us/testimonials
Alternate URL: /es/about-us/testimonials




And I have my sitemap XML file setup like the following:

<url>
<loc>https://www.example.com/en/about-us/testimonials</loc>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/about-us/testimonials" />
<lastmod>2016-07-11T00:00:00Z</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.example.com/es/about-us/testimonials</loc>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/about-us/testimonials" />
<lastmod>2016-07-11T00:00:00Z</lastmod>
<priority>0.8</priority>
</url>


However, should I also be including the following hreflang="en" in my sitemap XML file to avoid this issue?

<url>
<loc>https://www.example.com/en/about-us/testimonials</loc>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/about-us/testimonials" />
<lastmod>2016-07-11T00:00:00Z</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.example.com/es/about-us/testimonials</loc>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/about-us/testimonials" />
<lastmod>2016-07-11T00:00:00Z</lastmod>
<priority>0.8</priority>
</url>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi8258870

Yes, you need to include both languages for each entry in the sitemap: the url you are specifying in the loc item and every alternate language version of the page.

Also the hreflang="x-default" is used only for auto-redirecting homepages or selectors, so in your case it seems that both pages have a specific language: en and es, it should be written with hreflang="en" instead of x-default like this:

<url>
<loc>https://www.example.com/en/about-us/testimonials</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/about-us/testimonials" />
<lastmod>2016-07-11T00:00:00Z</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.example.com/es/about-us/testimonials</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://www.example.com/en/about-us/testimonials" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.example.com/es/about-us/testimonials" />
<lastmod>2016-07-11T00:00:00Z</lastmod>
<priority>0.8</priority>
</url>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme