From 0b8a14f35ce21345fb9b4f840dc1ddf1cc06c6fe Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Fri, 7 Apr 2017 22:22:41 +0530 Subject: [PATCH] Use existing route info when Router.reload() is called. (#1654) Earlier, it tries to get that info from the location.href. That's incorrect. --- lib/router/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/router/router.js b/lib/router/router.js index ecf7ac7b..cf3197c0 100644 --- a/lib/router/router.js +++ b/lib/router/router.js @@ -81,8 +81,8 @@ export default class Router { if (route !== this.route) return + const { pathname, query } = this const url = window.location.href - const { pathname, query } = parse(url, true) this.events.emit('routeChangeStart', url) const routeInfo = await this.getRouteInfo(route, pathname, query, url)