• Resolved Daniele

    (@dabesa)


    Dear support,

    We’re having two issued with the hreflang generated:

    1. the self-referencing hreflang is missing: I suspect this is because the <html lang=”it-IT”> but the hreflang is <link rel=”alternate” hreflang=”it” href=”[url]” />

    2. the hreflang for translated categories have the URL not translated, for example:
    Page URL: /da/kategori/sundhed/
    Hreflang: <link rel=”alternate” hreflang=”da” href=”https://[domain]/da/category/salute/”&gt;
    The category is translated in the URL but not in the hreflang.

    Can you help with these issues?

    Thanks
    Daniel

Viewing 1 replies (of 1 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    As you have the html lang attribute in place and you are using standard sub-directory URL structure I would recommend removing hreflang tags completely as we are using Google suggested URL structure which is easy to auto detect by search engines.

    We recommend using hreflang tags only in cases when you have different domains for each language like example.es, example.de, etc. available with our Language Hosting feature.

    I see you have our URL translation feature and also want to use hreflang tags. Since both translated and not translated URLs lead to identical page (/da/kategori/sundhed/ and /da/category/salute/), we use canonical tag to define which version must be indexed by search engines and we give priority to the translated URL. However inside the hreflang tags we use non translated version of the URL, which may confuse some hreflang tag checkers, which do not take into account the canonical tag when determining if the page is self-referencing or not.

    If we place the hreflang tags in translated form (which is technically difficult to do as your original website does not know anything about the translations) then you will have the same warning message for the other non URL translated page.

    You can simply ignore the message as it is properly configured and is controlled by the canonical tag or you can simply remove hreflang tags completely which is still fine.

    Thanks! 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘hreflang issues’ is closed to new replies.