Open schoettler opened 5 months ago
Describe the bug
useRouter
To Reproduce Steps to reproduce the behavior:
next-international/middleware
const I18nMiddleware = createI18nMiddleware({ locales: ['en', 'fr'], // oui oui je suis canadienne defaultLocale: 'en', });
Expected behavior
import { useRouter } from 'next/navigation' [...] router.push('/'); [...]
It is expected to resolve localhost/[basePath]/[defaultLocale] (maybe my expectation is wrong).
localhost/[basePath]/[defaultLocale]
But it's only resolving localhost/[basePath]
localhost/[basePath]
About (please complete the following information):
"next-international": "^1.2.4"
"next": "14.1.4"
Describe the bug
useRouter
, the default locale is missing in the URL resolution.To Reproduce Steps to reproduce the behavior:
next-international/middleware
without any rewrite rule:useRouter
to navigateExpected behavior
It is expected to resolve
localhost/[basePath]/[defaultLocale]
(maybe my expectation is wrong).But it's only resolving
localhost/[basePath]
About (please complete the following information):
"next-international": "^1.2.4"
"next": "14.1.4"