i18n: Getting ERROR 404 on Google search console

Version

v5.3.0

Steps to reproduce

['nuxt-i18n', {
      parsePages: false,
      locales: ['es'],
      strategy: 'prefix',
      detectBrowserLanguage: {
        useCookie: true,
        cookieKey: 'i18n_redirected',
        alwaysRedirect: true,
        fallbackLocale: 'es'
      },
      vueI18n: {
        messages: {
          'es': require('./locales/es.json')
        }
      }
    }],

Here is my nuxt-i18n configuration.

What is expected ?

Redirect to /es as it is the only one available language.

What is actually happening?

Google Search Console is telling me that I have an ERROR 404 in / when crawling data from my website error.png

Additional comments?

I have no problem entering the webpage, but my website is not being indexed by Google on their Search Engine because of this.

<div align="right">This bug report is available on Nuxt community (#c323)</div>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 17

Commits related to this issue

Most upvoted comments

This specific case (configuration posted in the initial comment) appears to have been fixed by #510.

Thanks a lot. I can see the problem now and will look into it.

You’re right. I’ll have a look at what might be a problem with prefix strategy.