: 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)
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>
More posts by @Hamaas447
1 Comments
Sorted by latest first Latest Oldest Best
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>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.