Copy location object

This commit is contained in:
Ken-Håvard Lieng 2020-04-30 13:44:36 +02:00
parent 13a31c30d9
commit c566d5d61d

View File

@ -69,7 +69,7 @@ function match(routes, location) {
for (let j = 0; j < keys.length; j++) { for (let j = 0; j < keys.length; j++) {
params[keys[j]] = decodeURIComponent(params[keys[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; return null;