From c566d5d61d9f476767e141391d1ff087e71dbc5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Thu, 30 Apr 2020 13:44:36 +0200 Subject: [PATCH] Copy location object --- client/js/utils/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/utils/router.js b/client/js/utils/router.js index 38426cc5..58b4956e 100644 --- a/client/js/utils/router.js +++ b/client/js/utils/router.js @@ -69,7 +69,7 @@ function match(routes, location) { for (let j = 0; j < keys.length; j++) { params[keys[j]] = decodeURIComponent(params[keys[j]]); } - return locationChanged(routes[i].name, params, decode(location)); + return locationChanged(routes[i].name, params, decode({ ...location })); } } return null;