1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

fix query for getInitialProps is not parsed as an object

This commit is contained in:
nkzawa 2016-11-06 15:09:37 +09:00
parent 027622f646
commit efbf0efc98

View file

@ -26,7 +26,7 @@ export default class Router {
onPopState (e) { onPopState (e) {
this.abortComponentLoad() this.abortComponentLoad()
const { pathname, query } = parse(window.location.href) const { pathname, query } = parse(window.location.href, true)
const route = (e.state || {}).route || toRoute(pathname) const route = (e.state || {}).route || toRoute(pathname)
Promise.resolve() Promise.resolve()
@ -66,7 +66,7 @@ export default class Router {
if (route !== this.route) return if (route !== this.route) return
const { pathname, query } = parse(window.location.href) const { pathname, query } = parse(window.location.href, true)
let data let data
let props let props