rsnext/test/integration/invalid-href/pages/dynamic-route-mismatch-manual.js
JJ Kasper fcfb5959e6
Allow mismatching href and as when manually provided (#9837)
* Allow mismatch href and as when manually provided

* Swap warning and error and throw error in production also

* Add test for mismatch error in production

* Update to only show warning in development
2020-01-20 16:47:52 -06:00

7 lines
139 B
JavaScript

import Link from 'next/link'
export default () => (
<Link href="/[post]?post=post-1" as="/blog/post-1">
<a>Click me</a>
</Link>
)