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
Before this commit in v13.2.5-canary.17 b8d785d config like one in reproduction would result in localized urls in rewrites to point to correct page with correct locale then passed to getStaticProps/getServerSideProps context. After this commit rewrite with source: "/de/de-test" results in 404, changing rewrite source url part after locale to the same as page name in /pages ie. source: "/de/test" results in working rewrite.
Expected Behavior
i18n config and rewrites as in reproduction repo should result with url "/de/de-test" pointing to "/test" in /pages with locale passed to getStaticProps/getServerSideProps context as in versions before v13.2.5-canary.17
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered:
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #166-Ubuntu SMP Tue Apr 18 16:51:45 UTC 2023 Binaries: Node: 18.16.0 npm: 9.5.1 Yarn: 1.22.10 pnpm: 8.6.0 Relevant packages: next: 13.2.5-canary.17 eslint-config-next: 13.2.5-canary.17 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
Internationalization (i18n)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/przemekga/rewrites-18n-bug-reproduction
To Reproduce
Describe the Bug
Before this commit in v13.2.5-canary.17 b8d785d config like one in reproduction would result in localized urls in rewrites to point to correct page with correct locale then passed to getStaticProps/getServerSideProps context. After this commit rewrite with
source: "/de/de-test"
results in 404, changing rewrite source url part after locale to the same as page name in /pages ie.source: "/de/test"
results in working rewrite.Expected Behavior
i18n config and rewrites as in reproduction repo should result with url "/de/de-test" pointing to "/test" in
/pages
with locale passed to getStaticProps/getServerSideProps context as in versions before v13.2.5-canary.17Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: