Widget: Fix opening a subevent dynamically

This commit is contained in:
Raphael Michel
2025-02-26 16:44:16 +01:00
parent 625bc66516
commit 79567cc724
@@ -1978,9 +1978,13 @@ var shared_root_computed = {
},
formAction: function () {
if (!this.useIframe && this.is_button && this.items.length === 0) {
var target = this.target_url;
var target;
if (this.voucher_code) {
target = this.target_url + 'redeem';
} else if (this.subevent) {
target = this.target_url + this.subevent + '/';
} else {
target = this.target_url;
}
return target;
}