Widget: Keep language in no-cookie-flow

This commit is contained in:
Raphael Michel
2023-02-17 09:58:47 +01:00
parent 72aaf24a40
commit 50f9cfd402
3 changed files with 26 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ class WaitingView(EventViewMixin, FormView):
r = render(request, 'pretixpresale/event/cookies.html', {
'url': eventreverse(
request.event, "presale:event.waitinglist", kwargs={'cart_namespace': kwargs.get('cart_namespace')}
) + '?' + url_replace(request, 'require_cookie', '', 'iframe', '')
) + '?' + url_replace(request, 'require_cookie', '', 'iframe', '', 'locale', request.GET.get('locale', get_language_without_region()))
})
r._csp_ignore = True
return r