-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Client side href resolving breaks with trailingSlash: true #16872
Milestone
Comments
This was referenced Sep 5, 2020
kodiakhq bot
pushed a commit
that referenced
this issue
Sep 6, 2020
This makes sure to strip the trailing slash before attempting to resolve the `href` against pages/dynamic routes and adds tests ensuring the correct pages are resolved with `trailingSlash: true` enabled. Fixes: #16872
@MrEfrem this should be resolved in the latest canary of Next.js |
@ijjk thanks! |
HitoriSensei
pushed a commit
to HitoriSensei/next.js
that referenced
this issue
Sep 26, 2020
This makes sure to strip the trailing slash before attempting to resolve the `href` against pages/dynamic routes and adds tests ensuring the correct pages are resolved with `trailingSlash: true` enabled. Fixes: vercel#16872
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've /en/software.jsx and /en/[post].jsx files. When I navigated to /en/software/ via Router.push('/en/software/') in v9.5.2 it resolved to /en/software.jsx correctly. But in v9.5.3 and v9.5.4-canary.3 it resolves to /en/[post].jsx
Originally posted by @MrEfrem in #16825 (comment)
We need to make sure to resolve the href value correctly when the trailing slash is present on the client
The text was updated successfully, but these errors were encountered: