mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Also update Router.push example with object URL (#2639)
Following on from f8950e9b4c
This commit is contained in:
parent
f8950e9b4c
commit
051ee314e9
|
@ -411,7 +411,7 @@ You can use an URL object the same way you use it in a `<Link>` component to `pu
|
||||||
import Router from 'next/router'
|
import Router from 'next/router'
|
||||||
|
|
||||||
const handler = () => Router.push({
|
const handler = () => Router.push({
|
||||||
pathname: 'about',
|
pathname: '/about',
|
||||||
query: { name: 'Zeit' }
|
query: { name: 'Zeit' }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue