diff --git a/web/context_processor.py b/web/context_processor.py index 595d86a..deafcc0 100644 --- a/web/context_processor.py +++ b/web/context_processor.py @@ -7,5 +7,9 @@ def BASE_URL(request): else: scheme = 'http://' fullhost = request.get_host() - base = fullhost.split(":")[0] + port = fullhost.split(":")[1] + if port == 80 or port == 443: + base = fullhost.split(":")[0] + else: + base = fullhost return {'BASE_URL': scheme + base, } \ No newline at end of file diff --git a/web/templates/feeds.html b/web/templates/feeds.html index 4109b2c..67b3315 100644 --- a/web/templates/feeds.html +++ b/web/templates/feeds.html @@ -19,7 +19,7 @@