-
Notifications
You must be signed in to change notification settings - Fork 28k
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
Bugs with heuristic to "detect file by whether it has a dot" with trailingSlash #56090
Comments
Hello, the designer/builder of the https://mirrors.help here. We found out about the issue when we were building the sie. You can also reproduce the error on our site:
|
I have worked out a demo to show this bug:
It also shows that this bug affects Reproduction:
|
Possible related issue at Cloudflare side: cloudflare/workers-sdk#2779 |
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. |
No the issue is still there, it is not stale. |
Link to the code that reproduces this issue
https://github.com/taoky-playground/nextjs-remove-trailing-with-dot-bug
To Reproduce
next export
yarn build
index.html
:Current vs. Expected behavior
Current:
<a href="/b.git">b.git/</a>
Expected:
<a href="/b.git/">b.git/</a>
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:40 +0000 Binaries: Node: 18.13.0 npm: 8.19.3 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 13.5.4-canary.1 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Routing (next/router, next/navigation, next/link)
Additional context
Related (they are all locked):
.
#25103It is fundamentally broken to "detect file" by checking whether it has a
.
or not -- this is not a Windows-only world, after all. Although most HTTP server could help redirect to the URL with a trailing slash:Thus I believe that
next.js/packages/next/src/client/normalize-trailing-slash.ts
Line 15 in 3eadfe9
The text was updated successfully, but these errors were encountered: