Getting 'no return tags error (sitemaps)' in Search Console

I’m using @pedroborges kirby-xml-sitemap and I’m getting a ‘No return tags (sitemaps)’ error from Search Console.

This is the generated sitemap and if I compared it with the search console example, it seems to be fine.

Any idea about how to fix this error?

Look at https://webmasters.stackexchange.com/questions/67058/international-targeting-no-return-tags for details.

Good luck!

Yes I already read it, but I don’t know how to fix it.

As @texnixe has noticed, in the google example there is an url element for each language:

<url>
    <loc>http://www.example.com/english/</loc>
    <xhtml:link 
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/deutsch/"
                 />
...
  </url>

<url>
    <loc>http://www.example.com/deutsch/</loc>
    <xhtml:link 
                 rel="alternate"
                 hreflang="en"
                 href="http://www.example.com/english/"
                 />
...
  </url>

But the plugin only generates one url element for each page. Could it be the problem?

I think so, because in the example, each language URL has its own URL element and within each URL element, the links to each different alternate language so that they all link to each other.

I deleted my own post because I thought I had misread it but in fact I didn’t but couldn’t undelete it again.

So here it is again for reference:

In the notes of the example you linked to, it says that you need an URL element for each language.

Debes crear un elemento url independiente para cada URL. Cada uno de estos elementos url debe incluir una etiqueta “loc” en la que se indique las URL de las páginas y un subelemento xhtml:link rel=“alternate” hreflang=“XX” para cada versión alternativa de la página, incluida la propia página.

But the snippet from the xml sitemap plugin creates the links for each language within the same URL element. Maybe that’s why.

Edit:

But the snippet from the xml sitemap plugin creates the links for each language within the same URL element

which is correct, but the URL elements for each language are missing.

Ok, I will create an issue in the plugin repository, to ask if it is possible to fix it.

Thanks!

I think yes, this plugin is NOT for multi-language sites yet.

But on other posts in this forum, you can find more about this…