next-translate icon indicating copy to clipboard operation
next-translate copied to clipboard

Rewrites doesn't work

Open MathiasSvDK opened this issue 2 years ago • 1 comments

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.

MathiasSvDK avatar Aug 07 '23 15:08 MathiasSvDK

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

aralroca avatar Aug 08 '23 12:08 aralroca