From f9637a1c86a78fab901c400b7c90f24ae2ba57e9 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Wed, 15 Aug 2018 15:24:28 +0200 Subject: [PATCH] fix: trigger watch query on trailing slash change (#3695) --- lib/app/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/client.js b/lib/app/client.js index 6d637607c..371ab1978 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -314,7 +314,7 @@ async function render (to, from, next) { Component._dataRefresh = false // Check if Component need to be refreshed (call asyncData & fetch) // Only if its slug has changed or is watch query changes - if (this._pathChanged && Component._path !== _lastPaths[i]) { + if (this._pathChanged && this._queryChanged || Component._path !== _lastPaths[i]) { Component._dataRefresh = true } else if (!this._pathChanged && this._queryChanged) { const watchQuery = Component.options.watchQuery