mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Summary Follow up regression test for rewrites with a `has` condition throwing errors in older browsers #25208. @timneutkens Let me know if this is what you had in mind? 😸
14 lines
275 B
JavaScript
14 lines
275 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default function Page() {
|
|
const router = useRouter()
|
|
|
|
return (
|
|
<>
|
|
<p id="another">another page</p>
|
|
<p id="pathname">{router.pathname}</p>
|
|
<p id="query">{JSON.stringify(router.query)}</p>
|
|
</>
|
|
)
|
|
}
|