I am working on a multilingual site. I have to add HREFLANG attribute so that search engines like Google provide the proper response according to the language of the user and the region.
To implement this, I am using Alternate HREFLANG module which basically add HREFLANG attribute like this :
for all the three languages.
But I want to add language as well as region like this:
In the description of Alternate HREFLANG module description, they mentioned that if you want to alter this attribute, you can use hook_language_switch_links_alter() and hook_html_head_alter() these hooks.
But when I dsm these, I didn't get the HREFLANG attribute.
Can someone help me to achieve this?