mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This makes sure to also check if a dynamic route matched after resolving a rewrite on the client to match behavior on the server. It also adds tests for this behavior to ensure it is working properly. Fixes: https://github.com/vercel/next.js/issues/16454
6 lines
135 B
JavaScript
6 lines
135 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default () => (
|
|
<p id="category">category: {useRouter().query.slug?.join('/')}</p>
|
|
)
|