mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This ensures we are checking the filesystem correctly when i18n is used to prevent fallback rewrites from being applied even when a page is matched. Additional tests have been added to ensure these cases are being handled. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: https://github.com/vercel/next.js/issues/23577
17 lines
310 B
JavaScript
17 lines
310 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default function Another(props) {
|
|
const router = useRouter()
|
|
|
|
return (
|
|
<p id="router">
|
|
{JSON.stringify({
|
|
pathname: router.pathname,
|
|
asPath: router.asPath,
|
|
query: router.query,
|
|
another: true,
|
|
})}
|
|
</p>
|
|
)
|
|
}
|