Adding hreflang for current language?
-
Hi, Lovely plugin. I’m about to use it for a GB/ES site.
I’ve had a look at the hreflang meta info that gets included in each page, and I believe that an addition / fix needs to be made.
I have two languages, English (http://mydomain/) and Spanish (http://mydomain/es/).
When viewing an English that has a Spanish transation I see this meta tag:
<link hreflang="es" href="http://mydomain/a-test-post/" rel="alternate" />According to Google guidelines “If you have multiple language versions of a URL, each language page must identify all language versions, including itself.” so I think qTranslate’s output should be this:
<link hreflang="en" href="http://mydomain/a-test-post/" rel="alternate" /> <link hreflang="es" href="http://mydomain/es/a-test-post/" rel="alternate" />Would you agree, and do you think this should be implemented in a future version?
The topic ‘Adding hreflang for current language?’ is closed to new replies.