aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-03-20 16:51:24 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-03-20 16:51:24 +0100
commite0ef8b7bca99692357a1d2f476b73124ff8406ac (patch)
treea52fc79843c27a4fba97c4d7a071156fa291fd11 /src/client
parent6be2de249c494370283bb2a23a48500ed6e2871b (diff)
Fix setWeek code so that it actually works
Diffstat (limited to 'src/client')
-rw-r--r--src/client/react/lib/url.js3
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}`);
}