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:
parent
027622f646
commit
efbf0efc98
|
@ -26,7 +26,7 @@ export default class Router {
|
|||
onPopState (e) {
|
||||
this.abortComponentLoad()
|
||||
|
||||
const { pathname, query } = parse(window.location.href)
|
||||
const { pathname, query } = parse(window.location.href, true)
|
||||
const route = (e.state || {}).route || toRoute(pathname)
|
||||
|
||||
Promise.resolve()
|
||||
|
@ -66,7 +66,7 @@ export default class Router {
|
|||
|
||||
if (route !== this.route) return
|
||||
|
||||
const { pathname, query } = parse(window.location.href)
|
||||
const { pathname, query } = parse(window.location.href, true)
|
||||
|
||||
let data
|
||||
let props
|
||||
|
|
Loading…
Reference in a new issue