i18n: Duplicate, submitted URL not selected as canonical

I have created a couple of multilingual websites using this module. However Google Search Console is warning me that the translated pages are not being accepted :

Duplicate, submitted URL not selected as canonical

When I check the canonical tags using Google Inspection URL tool they are apparently fine:

Screenshot 2021-06-09 at 16 17 04

I also checked them using curl and they look correct. Until now I have been using the default detectBrowserLanguage settings, which means that I didn’t specify these settings. I suspect that this options may be generating SEO issues.

Has anybody experienced any indexing issue? Should I disable this redirect option with detectBrowserLanguage: false?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17

Most upvoted comments

That’s the plan for the next major version since it’s a breaking change.

Hello,

Yes, indeed redirection causes that duplicate error. You need to enable onlyOnRoot and wait until Google will reindex.

Thanks!

If you don’t need the functionality that detectBrowserLanguage provides then as far as google is concerned, this is the best option.

Just a small question, can we later* merge onlyOnNoPrefix into onlyOnRoot?

Yes!

  • If yes, when these breaking changes will happen?

Not sure. Would need to have enough time and plan first. I’ll create new issue for it.

Have you enabled the SEO features as described in https://i18n.nuxtjs.org/seo ? Without that the canonical tag is not added at all.

Hello,

Duplicate, submitted URL not selected as canonical

Where? You haven’t shown where you get that error, there should be complete information that you didn’t provide at all.

Has anybody experienced any indexing issue? Should I disable this redirect option with detectBrowserLanguage: false?

No issues, you need to enable onlyOnRoot as well and have read the documentation at least which covers almost everything.

Thanks!