Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deviladam opened this issue Mar 26, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@deviladam
Copy link

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

@deviladam deviladam added the bug Something isn't working label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant