From e0ef8b7bca99692357a1d2f476b73124ff8406ac Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 20 Mar 2018 16:51:24 +0100 Subject: Fix setWeek code so that it actually works --- src/client/react/lib/url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/react/lib') diff --git a/src/client/react/lib/url.js b/src/client/react/lib/url.js index 77731fc..be09acf 100644 --- a/src/client/react/lib/url.js +++ b/src/client/react/lib/url.js @@ -53,5 +53,6 @@ export function setWeek(week, location, history) { ...queryString.parse(location.search), week, }); - history.push(`${location.pathname}${query}`); + + history.push(`${location.pathname}?${query}`); } -- cgit v1.1