Widget: Use absolute URL for poweredby URL (#2131)

When the <pretix-widget> was hosted on a separate domain, the
source code URL was pointing to the wrong page. This updates the URL to
always point to the Pretix installation.
This commit is contained in:
Maico Timmerman
2021-06-30 12:40:10 +02:00
committed by GitHub
parent 3fab15d086
commit 212f33afee
2 changed files with 4 additions and 4 deletions

View File

@@ -289,7 +289,7 @@ class WidgetAPIProductList(EventListMixin, View):
return grps, display_add_to_cart, len(items)
def post_process(self, data):
data['poweredby'] = get_powered_by(safelink=False)
data['poweredby'] = get_powered_by(self.request, safelink=False)
def response(self, data):
self.post_process(data)