Files
Zack TannerandGitHub b304b45e3a bugfix (pages): assetPrefix should not cause hard nav in development (#79176)
In development when handling the page request, we are sending the
parsedUrl with the basePath stripped but not assetPrefix. As a result,
when setting an assetPrefix, the chunk would 404 which causes a hard
nav. It'd then recover and work correctly on subsequent navs.

This applies the exact same handling we had for basePath, but for
assetPrefix.

Fixes #77241
2025-05-14 08:07:28 -07:00

12 lines
200 B
JavaScript

import Link from 'next/link'
import React from 'react'
export default function Page() {
return (
<>
<div id="text">Hello World</div>
<Link href="/page2">Page 2</Link>
</>
)
}