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

Rewrites doesn't work #1128

Open
MathiasSvDK opened this issue Aug 7, 2023 · 1 comment
Open

Rewrites doesn't work #1128

MathiasSvDK opened this issue Aug 7, 2023 · 1 comment

Comments

@MathiasSvDK
Copy link

What version of this package are you using?
2.5.3

What operating system, Node.js, and npm version?
Windows 11. Node v18.14.1. NPM 9.3.1

What happened?
It still shows the source URL

What did you expect to happen?
I expected it to redirect to the destination URL.

When using regular Next.JS with the APP router without next-translate it works but when using next-translate my redirects doesn't work.

@aralroca
Copy link
Owner

aralroca commented Aug 8, 2023

You need to take account the locale. More info: https://nextjs.org/docs/app/api-reference/next-config-js/rewrites#rewrites-with-i18n-support

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

No branches or pull requests

2 participants