fix double subevent-ID in URL

This commit is contained in:
Richard Schreiber
2026-08-24 13:23:47 +02:00
parent 329354a49a
commit d79cf9014a
@@ -510,10 +510,6 @@ export function createWidgetStore (config: {
// button with subevent but no items
redirectUrl += `${this.subevent}/`
}
if (this.subevent && !this.cartId) {
// button with subevent but no items
redirectUrl += `${this.subevent}/`
}
redirectUrl += `?iframe=1&locale=${LANG}`
if (this.cartId) {
// ajax to make sure the cart-id is used, even if the cart is currently empty