mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This ensures we don't apply the trailing slash redirect for `_next/data` requests as it can cause props to fail to resolve on client transition. This also fixes `missing` fields not being applied correctly for `headers` and `redirects` as the field wasn't being passed through. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) Closes: https://github.com/vercel/next.js/pull/45398 Fixes: https://github.com/vercel/next.js/issues/45393 x-ref: https://github.com/vercel/next.js/issues/45340
25 lines
473 B
JavaScript
25 lines
473 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<ul>
|
|
<li>
|
|
<Link
|
|
id="with-html"
|
|
href="/product/shirts_and_tops/mens_ua_playoff_polo_2.0/1327037.html"
|
|
>
|
|
Does not work
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link
|
|
id="without-html"
|
|
href="/product/shirts_and_tops/mens_ua_playoff_polo_2.0/1327037"
|
|
>
|
|
Works
|
|
</Link>
|
|
</li>
|
|
</ul>
|
|
)
|
|
}
|