diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index d711c9bfb9..3529acdd8f 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -2149,7 +2149,14 @@ var shared_root_computed = { if (this.subevent) { target = this.target_url + this.subevent + '/'; } - return target; + var parameters = this.$root.consent_parameter + if (this.$root.additionalURLParams) { + parameters += `&${this.$root.additionalURLParams}` + } + if (parameters) { + target += '?' + parameters.replace(/^&/, '') + } + return target }, useIframe: function () { if (window.crossOriginIsolated === true) { diff --git a/src/pretix/static/pretixpresale/widget/src/sharedStore.ts b/src/pretix/static/pretixpresale/widget/src/sharedStore.ts index 96700135f5..f43398316b 100644 --- a/src/pretix/static/pretixpresale/widget/src/sharedStore.ts +++ b/src/pretix/static/pretixpresale/widget/src/sharedStore.ts @@ -162,7 +162,15 @@ export function createWidgetStore (config: { return params.toString() }, newTabTarget (): string { - return this.subevent ? `${this.targetUrl}${this.subevent}/` : this.targetUrl + let url = this.subevent ? `${this.targetUrl}${this.subevent}/` : this.targetUrl + let parameters = this.consentParameter + if (this.additionalURLParams) { + parameters += `&${this.additionalURLParams}` + } + if (parameters) { + url += '?' + parameters.replace(/^&/, '') + } + return url }, formTarget (): string { const isFirefox = navigator.userAgent.toLowerCase().includes('firefox')