devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Incorrect missing lang tag in case of setting up in nuxt.config.ts

Open adi-no95 opened this issue 1 year ago • 0 comments

🐛 The bug

In the menu Open Graph under the tab Missing Tags. It displays incorrectly as missing lang tag if lang html attribute is set by nuxt.config.ts like:

// nuxt.config.ts
app: {
    head: {
      // ..
      htmlAttrs: {
        lang: 'en',
      },
    }
  }

Open Graph / Missing Tags / lang (location in dev tools) "⚠️lang The primary language of the page to help search engines and browsers understand the content."

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-nvb8xh?file=nuxt.config.ts

🌈 Expected behavior

It should not de displayed as missing lang tag in this case as far as I know. "⚠️lang The primary language of the page to help search engines and browsers understand the content."

ℹ️ Additional context

It works fine when I use useHead. 😊

adi-no95 avatar Mar 26 '24 16:03 adi-no95