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
During the client-side navigation to /en URL which corresponds to pages/[lang]/index.js lambda
pages/[lang]/[...slugs].js is called with empty slugs instead of pages/[lang]/index.js.
It happens only in production mode (after Zeit builds). It also concerns only getServerSideProps triggered from the client-side navigation (clicks on Link).
The same code works fine with now build && now start and now dev on the local machine.
Hi, this appears to be working correctly on the latest version of Next.js v10.0.5, as can be seen on this deployment https://test-index-mas20ojrb.vercel.app/ please update to the latest version and give it a try!
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
During the client-side navigation to
/en
URL which corresponds topages/[lang]/index.js
lambdapages/[lang]/[...slugs].js
is called with emptyslugs
instead ofpages/[lang]/index.js
.It happens only in
production
mode (after Zeit builds). It also concerns onlygetServerSideProps
triggered from the client-side navigation (clicks onLink
).The same code works fine with
now build && now start
andnow dev
on the local machine.Probably related to: #10488
Expected behavior
pages/[locale]/index.js
should always overridepages/[locale]/[...catchAll].js
route if both are present.Demonstration
👉 Video proof: https://youtu.be/ZVwAj-TEWSI (~2 mins)
System information
Next 9.3
I didn't have this problem with Next 9.2
For the sake of completeness tried:
Both work fine on the local machine and both cause 500 error related to empty slugs in
pages/[lang]/[...slugs].js
in production.The text was updated successfully, but these errors were encountered: