Hi there,
I'm trying to figure out how to use canonical & hreflang at the same time for a multilingual website.
I'm currently facing the following issue: "you should make sure to specify a self-referential canonical tag"
Let's suppose I have a blog post in English, and a URL for a french version as well, containing a message saying that the article is not available in french for the moment and displaying the English blog for the french page as well.
Let's suppose I'm on a french page version and I've got the following code for it:
<link rel="canonical" href="/blog/topic-title">
<link rel="alternate" href="https://www.website.com/blog/topic-title" hreflang="en">
<link rel="alternate" href="https://www.website.com/fr/blog/topic-title-fr" hreflang="fr">
This somehow, isn't great as the canonical should point to the french page. But what if I don't have a french page with french content, but only a french page with English content & a message saying that the content in French is not available for the moment, only in English.
Any idea as to how it could get out of the labyrinth?
I'm trying to figure out how to use canonical & hreflang at the same time for a multilingual website.
I'm currently facing the following issue: "you should make sure to specify a self-referential canonical tag"
Let's suppose I have a blog post in English, and a URL for a french version as well, containing a message saying that the article is not available in french for the moment and displaying the English blog for the french page as well.
Let's suppose I'm on a french page version and I've got the following code for it:
<link rel="canonical" href="/blog/topic-title">
<link rel="alternate" href="https://www.website.com/blog/topic-title" hreflang="en">
<link rel="alternate" href="https://www.website.com/fr/blog/topic-title-fr" hreflang="fr">
This somehow, isn't great as the canonical should point to the french page. But what if I don't have a french page with french content, but only a french page with English content & a message saying that the content in French is not available for the moment, only in English.
Any idea as to how it could get out of the labyrinth?