diff options
| author | Bobby <[email protected]> | 2022-11-18 15:52:08 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-18 15:52:08 -0500 |
| commit | 08ba6bd1ea9a1862e120526d3205b9f2265cbdc8 (patch) | |
| tree | 0efc0d525f0eb42f86f3b1d3af0faf82dd9e80e4 | |
| parent | a0c91535189b8a8c4433062708a6faa4cbfc1405 (diff) | |
| download | thatcomputerscientist-08ba6bd1ea9a1862e120526d3205b9f2265cbdc8.tar.xz thatcomputerscientist-08ba6bd1ea9a1862e120526d3205b9f2265cbdc8.zip | |
ignis:fix extra slash in url
| -rw-r--r-- | thatcomputerscientist/templatetags/subdomain.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thatcomputerscientist/templatetags/subdomain.py b/thatcomputerscientist/templatetags/subdomain.py index febfcd5a..2cdc273f 100644 --- a/thatcomputerscientist/templatetags/subdomain.py +++ b/thatcomputerscientist/templatetags/subdomain.py @@ -9,5 +9,6 @@ def subdomain(url, subdomain): return url else: url = url.replace(subdomain, '') + url = url.replace('//', '/') url = "http://" + subdomain + "." + settings.DOMAIN_NAME + url return url
\ No newline at end of file |
