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

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

Closed
rchl opened this issue Nov 6, 2019 · 0 comments · Fixed by nuxt/nuxt#6658
Closed

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

rchl opened this issue Nov 6, 2019 · 0 comments · Fixed by nuxt/nuxt#6658

Comments

@rchl
Copy link
Collaborator

rchl commented Nov 6, 2019

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

This bug report is available on Nuxt community (#c341)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant