Closed GuillaumeDgr closed 8 months ago
Would you be able to provide a reproduction? 🙏
Hi, I have given you an url / prod example - I cannot reproduce it, this strangely is working in localhost but not in prod after using 'yarn generate'. I can give you my i18n config :
i18n: { baseUrl: "https://devloop.dev", locales: [ { name: "English", code: "en", iso: "en-US", file: "en-US.json", dir: "ltr", }, { name: "Español", code: "es", iso: "es-ES", file: "es-ES.json", dir: "ltr", }, { name: "Français", code: "fr", iso: "fr-FR", file: "fr-FR.json", dir: "ltr", }, { name: "Català", code: "ca", iso: "ca-AD", file: "ca-AD.json", dir: "ltr", }, // Default locale should be at the array's end ], lazy: true, langDir: "locales", defaultLocale: "ca", strategy: "prefix_except_default", compilation: { strictMessage: false }, // To avoid HTML in Json error detectBrowserLanguage: false, },
Would you be able to provide a reproduction? 🙏
Closing due to inactivity and lack of reproduction (a URL is not sufficient), if you're still experiencing this issue please open a new issue with a (minimal) reproduction.
Environment
Reproduction
https://devloop.dev/any-url
Describe the bug
Each time I visit any or my nuxt3 website url, a 301 redirection occurs and redirects to url/ with trailing slash at the end. This is really a problem for SEO matters...
I look for all topics about it but did not find any workable solution, pls help me!
Many thanks!
Additional context
No response
Logs
No response