From 3c2507e7f286cc362a0db418d166983d45553d99 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Mon, 15 Feb 2021 16:15:29 -0500 Subject: [PATCH] fix: made urls resolve better --- launchx/templatetags/launchx_extras.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launchx/templatetags/launchx_extras.py b/launchx/templatetags/launchx_extras.py index 9920543..406aebe 100644 --- a/launchx/templatetags/launchx_extras.py +++ b/launchx/templatetags/launchx_extras.py @@ -9,4 +9,7 @@ def static(file_location): @register.simple_tag def url(url): - return settings.URL_PREFIX + url \ No newline at end of file + if url[-1] == '/': + return settings.URL_PREFIX + url + else: + return settings.URL_PREFIX + url + '/' \ No newline at end of file