Fails to redirect to locale on initial navigation with router in hash mode

rchl
578
rchl
commented a month ago

Version

v6.3.0

Reproduction link

https://codesandbox.io/s/nuxt-i18n-router-in-hash-mode-tl28z

Steps to reproduce

  1. In nuxt.config.js add: router: { mode: 'hash' }
  2. Configure nuxt-i18n to redirect to locale:
      "nuxt-i18n",
      {
        locales: ["en"],
        detectBrowserLanguage: {
          alwaysRedirect: true,
          fallbackLocale: "en"
        },
        vueI18n: {
          fallbackLocale: 'en',
          messages: {
            en: {
              welcome: "Welcome"
            }
          }
        }
      }
  1. Go to http://localhost:3000

What is expected ?

Index route is rendered

What is actually happening?

Blank page is shown

bug
0
Informations
Bug Report โ€ข Open
#c341 - Created a month ago