• Resolved bredless

    (@bredless)


    Hello.
    I have problem with hreflang.

    My site is in Turkish and I have added Azeri language support with TranslatePress plugin. I ended up with the following:

    <link rel="alternate" hreflang="tr-TR" href="https://mysite.com/"/>
    <link rel="alternate" hreflang="tr" href="https://mysite.com/"/>
    <link rel="alternate" hreflang="az" href="https://mysite.com/az/"/>
    <link rel="alternate" hreflang="x-default" href="https://mysite.com/"/>

    The problem is that the page
    https://mysite.com/
    is have language code
    <html lang="tr-TR">

    So if i understand correctly, we have extra link
    <link rel="alternate" hreflang="tr" href="https://mysite.com/"/>
    which shouldn’t be.

    This is repeated on all pages of the site.

    Also, Netpeak Spider shows me the error. So all pages of sites indicates as language code is not consistent with the language code of incoming hreflang links.

    Is there any way to disable this alternate link?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter bredless

    (@bredless)

    Also, in fact, another problem arises – duplicate alternative URLs. Multiple links to the same URL with different hreflang values. Netpeak Spider draws attention to this as well.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Since a few months ago, TranslatePress adds extra region independent hreflang tags, along with region dependent. They point to the same page.
    The region independent language tags help search engines provide the correct link to visitors without country specification or with a different country specification than those available.

    Thread Starter bredless

    (@bredless)

    Could it be possible to add a tag management functionality?
    I think it will be useful to be able to make the necessary edits yourself.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Could you describe this ” tag management functionality”? What exactly you should want to edit?

    Plugin Support Alex

    (@alexcozmoslabs)

    Since more than 5 days have passed since you received instructions about the opened topic, and you did not return with an update, we will mark this ticket as successfully resolved.
    If you have other questions regarding TranslatePress, we recommend you create another ticket.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hreflang error’ is closed to new replies.