1
0
Fork 0
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:
Tom Coleman 2017-07-25 11:23:21 +10:00 committed by Arunoda Susiripala
parent f8950e9b4c
commit 051ee314e9

View file

@ -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'
const handler = () => Router.push({
pathname: 'about',
pathname: '/about',
query: { name: 'Zeit' }
})