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

[SEO] Missing meta tags for i18n #1947

Open
harlan-zw opened this issue Nov 24, 2021 · 3 comments
Open

[SEO] Missing meta tags for i18n #1947

harlan-zw opened this issue Nov 24, 2021 · 3 comments

Comments

@harlan-zw
Copy link

I was taking a look at some of the sites HTML and noticed that on non-english pages the meta wasn't accurate for the locale.

These are important as they help Google understand which page a user should see depending on what their language preference is and avoid duplicate content penalties. They can also be used to automatically redirect the user to the page they should be seeing (see nuxt-i18n).

It's not urgent but would be a good one to sort out. You can find more information here: https://developers.google.com/search/docs/advanced/crawling/localized-versions

Rough checklist:

  • set the <html lang=""> correctly depending on which is used, currently all pages have <html lang="en">
  • add alternative meta links for the i18n pages, they look like
  • use og:locale
  <link rel="alternate" hreflang="en-gb"
       href="https://en-gb.example.com/page.html" />
  <link rel="alternate" hreflang="en-us"
       href="https://en-us.example.com/page.html" />
  <link rel="alternate" hreflang="en"
       href="https://en.example.com/page.html" />
  <link rel="alternate" hreflang="de"
       href="https://de.example.com/page.html" />
 <link rel="alternate" hreflang="x-default"
       href="https://www.example.com/" />
  • use canonical links
@iamarpitpatidar
Copy link
Contributor

@harlan-zw I think you're checking i1n legacy coz the new plugin have all the features mentioned above.. https://i18n.nuxtjs.org/seo

@harlan-zw
Copy link
Author

harlan-zw commented Dec 6, 2021

@iamarpitpatidar The nuxtjs.org site doesn't even use that module from what I can see, this issue is specifically about the nuxtjs.org site.

Take a look at view-source:https://nuxtjs.org/fr/ and you'll see the problem in the opening HTML block

@felipe-heredia
Copy link
Contributor

@iamarpitpatidar Apparently this is a limitation of Docus. You can open an issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants