Sitemap, languages and canonical URL

  • Hello,

    I have recently added TranslatePress to offer content in english and spanish. Since doing so, I have started seeing problems on Search Console.

    I write the page in Spanish and then use Translate Press to translate into English.

    Google is only indexing one page (in this case, english), as it’s detecting the original page as duplicate.

    Right now I have around 1.000 URLs with the same issue, and upon inspection on the page with Search Console here is what it says:

    Indexing
    User-declared canonical: https://www.mysite.com/en/URL/
    Google-selected canonical: Same as user-declared canonical

    I tried this approach to add extra URLs to the Sitemap for english content (https://support.rankmath.com/ticket/add-url-to-sitemap/), but after adding it to functions.php file it doesn’t seem to change anything.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    It looks like you post/page links are missing the hreflang tags that help search engines to understand that your content is available in multiple language locales.
    Could you please get in touch with the guys from TranslatePress and check if the plugin has the ability to add this tag on the pages?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Thanks for your answer.

    Yes, TranslatePress adds the hreflang for the different versions. If I check the source code on the homepage I can find the following:

    <link rel=”alternate” hreflang=”es-ES” href=”/”/> <link rel=”alternate” hreflang=”en-US” href=”en/”/>

    Is this what you mean?

    Hi there,

    I am not sure why my search brought 0 results the first time but I can now see that the tags exist on your page source.

    I am passing this on to our dev team for closer investigation and we will be getting back to you in a short while.

    We appreciate your patience. Thank you.

    Hello,

    <link rel=”alternate” hreflang=”es-ES” href=”/”/> <link rel=”alternate” hreflang=”en-US” href=”en/”/>
    
    Is this what you mean?

    Yes, this is what we mean but we do not see it in your website’s source code. We tried a few internal URLs as well but couldn’t find it.

    Can you please give us a couple of examples of a page and its translated version?

    Do check in an incognito window because I suspect hreflang tag is only being added for logged in users. It doesn’t make sense but then neither does the fact that you are seeing hreflang and we are not:
    null

    We look forward to hearing back from you.

    Sorry, I disabled TranslatePress trying to recover from the Google impact, so it was not showing.

    I have just enabled, so you can take a look now. And have added a link to an image showing the result from Search Console on the “sensitive data” field

    • This reply was modified 5 months, 1 week ago by Colourmobile.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi,

    The hreflang is still not visible.

    You will have to contact the TranslatePress plugin developer and ask them to take a look.

    As far as I can check, there is no issue originating from Rank Math.

    Moreover, I see two sitemaps in the screenshot you shared. If you are using any other SEO plugin or sitemap plugin – please disable that.

    Thank you.

    Yes, TranslatePress is deactivated right now as I’m trying to recover on Google. I have contacted them and I’m waiting for their response.

    Right now I only have RankMath enabled. I tinkered with other sitemaps generators, as Yoast for example create it with both the english and spanish version of the page, but I don’t know if it would make any difference if the robot entering the site has the IP or the chrome configured as english.

    I will wait for their answer and will contact you when I get more details.

    Thanks again.

    Hi there,

    Thanks for the follow up.

    We will be looking forward to your response.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘Sitemap, languages and canonical URL’ is closed to new replies.