Skip to content

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

Open
@deviladam

Description

@deviladam

🐛 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. 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions