You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @adascal - thanks for opening an issue. Your diagnosis of the problem is correct, but I've realised we need to hook into initializedLanguageOnce and set the asPath a little differently. I'll have a fix in for this within an hour or two.
Describe the bug
I have the following pages structure:
This should work according to the docs:
https://nextjs.org/learn/basics/clean-urls-with-dynamic-routing/dynamic-routing
The router seems to redirect correctly, however I get the following url on client-side transformed from http://localhost:3000/post/5 to http://localhost:3000/post/[id]?id=%5Bid%5D
Occurs in next-i18next version
#0.52.0
Steps to reproduce
Checkout example: https://github.com/adascal/next-i18next/tree/dynamic-routing-issue-example
master...adascal:dynamic-routing-issue-example
Expected behaviour
Routes are not transformed
Additional context
PR with fix (closed): #422
Similar issue: vercel/next.js#8092
The text was updated successfully, but these errors were encountered: