Files
JJ KasperandGitHub 45b8c88521 Ensure fallback rewrites dont match over pages with i18n (#23674)
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
2021-04-06 10:25:04 +00:00

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>
)
}