diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-03-20 16:51:24 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-03-20 16:51:24 +0100 |
commit | e0ef8b7bca99692357a1d2f476b73124ff8406ac (patch) | |
tree | a52fc79843c27a4fba97c4d7a071156fa291fd11 | |
parent | 6be2de249c494370283bb2a23a48500ed6e2871b (diff) |
Fix setWeek code so that it actually works
-rw-r--r-- | src/client/react/lib/url.js | 3 |
1 files changed, 2 insertions, 1 deletions
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}`); } |