HREFLANG tags not added while multiple languages enabled.

Created on 24 July 2025, about 1 month ago

Problem/Motivation

I have installed this module on a vanilla Drupal 10 site. The Metatag: Hreflang module is already installed and is correctly outputting hreflang tags in the DOM. However, after configuring this module for the all languages which are installed on our site, it is not modifying/altering hreflang tag, as the module claims to do.

Steps to reproduce

  • Install vanilla D10 instance
  • Enable multiple languages
  • Install Metatag and Metatag:HREFLANG modules. It will add HREFLANG tags in DOM.
  • Now install this module. Configure it for languages.
  • This module is not altering/modifying existing HREFLANG tags.
  • Proposed resolution

    It should alter existing HREFLANG tags with updated langcode which is configured from this modules settings like en-US

    🐛 Bug report
    Status

    Active

    Version

    1.0

    Component

    Code

    Created by

    🇮🇳India pankajsachdeva

    Live updates comments and jobs are added and updated live.
    Sign in to follow issues

    Comments & Activities

    Production build 0.71.5 2024