From 61ac979cbae8429f66ecdcb86c99daf013419865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 6 Feb 2017 13:24:59 +0100 Subject: [PATCH] Fix regression on query changes --- lib/app/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/app/client.js b/lib/app/client.js index 027ee0dc3d..21e189e631 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -39,7 +39,9 @@ function loadAsyncComponents (to, from, next) { } return Component }) - this._hashChanged = (from.path === to.path) + const fromPath = from.fullPath.split('#')[0] + const toPath = to.fullPath.split('#')[0] + this._hashChanged = (fromPath === toPath) if (!this._hashChanged) { <%= (loading ? 'this.$loading.start && this.$loading.start()' : '') %> }