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

fix: Use redirect function from next-intl instead from next/navigation #135

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

karolkarolka
Copy link
Collaborator

Because of disabling locale detection in next-intl routing config here, we need to switch from using redirect function from next-intl instead of the default next/navigation to not to redirect to the wrong locale.

Also, I'm adding back the types for next-intl redirect function export as it is still required for TypeScript.

Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nimara-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 1:03pm
nimara-ecommerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 1:03pm

@karolkarolka karolkarolka merged commit 0a96ffa into develop Dec 19, 2024
4 checks passed
@karolkarolka karolkarolka deleted the fix/missing-locale-in-redirects branch December 19, 2024 13:22
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 this pull request may close these issues.

2 participants