mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user