...buildState(this.location, normalized, null),
...data,
}
- cs.info('push', this.location, '->', to, 'with state', state)
+ cs.info('push', this.location, '->', normalized, 'with state', state)
this.history.pushState(state, '', normalized.fullPath)
this.location = normalized
}
let url = location.path
let query = location.query ? stringifyQuery(location.query) : ''
- return url + (query.length && '?' + query) + (location.hash || '')
+ return url + (query && '?' + query) + (location.hash || '')
}
/**
url = this.history.utils.normalizeLocation(location)
}
- console.log(location)
- console.log('---')
// TODO: call hooks, guards
- // TODO: navigate
- // this.history.push(location.fullPath)
+ this.history.push(url)
this.currentRoute = {
...url,
...location,