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
… extension (#66636)
### What
Skip adding trailing slash for file pattern like same origin urls
### Why
Fixes#66635
Next.js will not append trailing slash for file like pattern urls when
`trailingSlash` is enabled. This PR aligns the behavior of the metadata
trailing slash appending with next-server route handling.
---------
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
… extension (#66636)
### What
Skip adding trailing slash for file pattern like same origin urls
### Why
Fixes#66635
Next.js will not append trailing slash for file like pattern urls when
`trailingSlash` is enabled. This PR aligns the behavior of the metadata
trailing slash appending with next-server route handling.
---------
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
kshehadeh/nextjs-routing-sandbox@04fffc1
To Reproduce
.html
.html/
Current vs. Expected behavior
Current: canonical ends with
.html/
Expected: canonical ends with
.html
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 Available memory (MB): 16384 Available CPU cores: 12 Binaries: Node: 18.17.0 npm: 10.2.5 Yarn: N/A pnpm: 8.15.7 Relevant Packages: next: 14.2.3 // Latest available version is detected (14.2.3). eslint-config-next: 14.0.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Metadata
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local), Vercel (Deployed)
Additional context
I believe it was introduced with this PR: https://github.com/vercel/next.js/pull/62109/files
The text was updated successfully, but these errors were encountered: