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

[next] Correct i18n trailing slash redirect priority #5306

Merged
merged 2 commits into from Oct 20, 2020

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Oct 20, 2020

This makes sure the trailing slash route is detected correctly and ensures the priority is higher than the $wildcard route to prevent the redirect from causing locale mapping to fail. Adding tests for this doesn't currently work as we need to be able to assign domains to the test deployment to test it properly. This was manually tested with the builder @ijjk/now-next@0.0.17-i18n with https://i18n-support.vercel.app

x-ref: vercel/next.js#17370
x-ref: #5298

@ijjk ijjk requested a review from Timer as a code owner October 20, 2020 11:14
@ijjk ijjk requested a review from timneutkens October 20, 2020 11:16
@ijjk ijjk merged commit 2474a80 into master Oct 20, 2020
@ijjk ijjk deleted the ijjk/next-i18n/fix-redirect-priority branch October 20, 2020 16:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants