mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
(custom-server-express) avoid a 404 when navigating to a custom route (#3645)
* next export will expand symlinks now * Make sure next export doesn't includes _document.js in windows * avoid a client side not found page when navigating to a custom route
This commit is contained in:
parent
4db7e8fe9e
commit
80fc0f4511
|
@ -5,6 +5,13 @@ export default () => (
|
|||
<ul>
|
||||
<li><Link href='/b' as='/a'><a>a</a></Link></li>
|
||||
<li><Link href='/a' as='/b'><a>b</a></Link></li>
|
||||
<li><Link href='/posts/2'><a>post #2</a></Link></li>
|
||||
<li>
|
||||
<Link
|
||||
href={{pathname: '/posts', query: { id: '2' }}}
|
||||
as='/posts/2'
|
||||
>
|
||||
<a>post #2</a>
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue