mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fixed absolute URLs (now for real)
This commit is contained in:
@@ -4,6 +4,4 @@ from django.core.urlresolvers import reverse
|
||||
|
||||
|
||||
def build_absolute_uri(urlname, args=None, kwargs=None):
|
||||
# Pass prefix='' as a possible SCRIPT_PREFIX (if pretix runs in a subdirectory)
|
||||
# is included in SITE_URL _and_ is added by reverse.
|
||||
return urljoin(settings.SITE_URL, reverse(urlname, args=args, kwargs=kwargs, prefix=''))
|
||||
return urljoin(settings.SITE_URL, reverse(urlname, args=args, kwargs=kwargs))
|
||||
|
||||
Reference in New Issue
Block a user