2

I have a content page in English with Japanese and Chinese translations. Even when I unpublished the translation nodes, the page source code will display the hreflang attributes to the unpublished languages in header.

<link rel="alternate" hreflang="en" href="https://testsite.com/dining.html" />
<link rel="alternate" hreflang="ja" href="https://testsite.com/ja/dining.html" />
<link rel="alternate" hreflang="zh-hans" href="https://testsite.com/zh-hans/dining.html" />

This seems to be generated automatically. And when I run a test for SEO these language links throws 404 error because they are unpublished. How do I remove the unpublished links from the hreflang. (And it should be automatically added when I publish the translations)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.