Commit 051ee314 authored by Tom Coleman's avatar Tom Coleman Committed by Arunoda Susiripala

Also update Router.push example with object URL (#2639)

Following on from https://github.com/zeit/next.js/commit/f8950e9b4c4c25f22047f5b019a66bf77bc1457d
parent f8950e9b
...@@ -411,7 +411,7 @@ You can use an URL object the same way you use it in a `<Link>` component to `pu ...@@ -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' }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment