From aa9a4feacbd032f910446713b4a47aad4897fc55 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 3 Feb 2025 12:22:24 +0100 Subject: [PATCH] fix event back-URL --- src/pretix/static/pretixpresale/js/widget/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index b9c91ba2b..4cafd38da 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -1098,7 +1098,7 @@ Vue.component('pretix-widget-event-form', { }, computed: { href: function () { - return this.$root.$weeks ? this.$root.event.event_url : this.$root.parent_stack[this.$root.parent_stack.length-1]; + return this.$root.event?.event_url || this.$root.parent_stack[this.$root.parent_stack.length-1]; }, display_event_info: function () { return this.$root.display_event_info || (this.$root.display_event_info === null && (this.$root.events || this.$root.weeks || this.$root.days));