From c8a830ecde186e7fe8862bda1410852de50e571b Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Wed, 15 Dec 2021 14:07:42 +0100 Subject: [PATCH] Fix: change widget to use new date-based URLs in calendar-view (#2382) --- src/pretix/static/pretixpresale/js/widget/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 91037a74c1..6fee51d8ce 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -1396,9 +1396,9 @@ var shared_root_methods = { url += "&cart_id=" + encodeURIComponent(cart_id); } if (this.$root.date !== null) { - url += "&year=" + this.$root.date.substr(0, 4) + "&month=" + this.$root.date.substr(5, 2); + url += "&date=" + this.$root.date.substr(0, 7); } else if (this.$root.week !== null) { - url += "&year=" + this.$root.week[0] + "&week=" + this.$root.week[1]; + url += "&date=" + this.$root.week[0] + "-W" + this.$root.week[1]; } if (this.$root.style !== null) { url = url + '&style=' + encodeURIComponent(this.$root.style);