fix: made urls resolve better

This commit is contained in:
Rushil Umaretiya 2021-02-15 16:15:29 -05:00
parent d4c392916c
commit 3c2507e7f2
No known key found for this signature in database
GPG Key ID: 4E8FAF9C926AF959

View File

@ -9,4 +9,7 @@ def static(file_location):
@register.simple_tag
def url(url):
return settings.URL_PREFIX + url
if url[-1] == '/':
return settings.URL_PREFIX + url
else:
return settings.URL_PREFIX + url + '/'