Closed MaxTec closed 12 months ago
Yes, you are right. Unfortunately, this cannot be fixed using next-translate-route approach: trying to use a redirect would lead to a looping redirection. The only way to do this seems to be using the middleware, as stated here. I will update next-translate-routes docs to mention it.
Describe the bug
I've encountered a redirection issue when utilizing
getServerSideProps
on my project. The expected behavior is that visiting "/en/contact" would redirect to "/contact" since I have set the default language to English. However, the redirection fails to occur whengetServerSideProps
is utilized. When I removegetServerSideProps
, the redirection works as expected.To Reproduce
Steps to reproduce the behavior:
/contact
page and implementgetServerSideProps
.System information