Commit 80fc0f45 authored by Luis Fernando Alvarez D's avatar Luis Fernando Alvarez D Committed by Tim Neutkens

(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
parent 4db7e8fe
...@@ -5,6 +5,13 @@ export default () => ( ...@@ -5,6 +5,13 @@ export default () => (
<ul> <ul>
<li><Link href='/b' as='/a'><a>a</a></Link></li> <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='/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> </ul>
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment