This module allows you to customize the `hreflang` attribute on your site, supporting both single and multilingual setups. You can define custom language formats, such as `es-es` or `en-us`, to improve how search engines understand your site's language variations.
Alter hreflang
---------------
This will help to alter the hreflang attribute based on the languages of the site. Using this we can set the custom language format (e.g., es-es, en-us).
or
It will perfectly work with multilingual sites as well apart from a single language site.
Installation
------------
1) Download the module and place it inside the modules/contrib directory or install using the composer "composer require 'drupal/alter_hreflang:^1.0'.
2) Enable the Alter hreflang module from /admin/modules URL.
3) Configuration URL /admin/config/regional/alter-hreflang
Ask your assistant about Alter Hreflang Based on Language
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.