diff --git a/i2p2www/templatevars.py b/i2p2www/templatevars.py index e682dd2da6ef8f2ad91253760c9058fe9bd417be..383158ae4d05899f8b0649e6b8b8ff68aef13f52 100644 --- a/i2p2www/templatevars.py +++ b/i2p2www/templatevars.py @@ -45,8 +45,8 @@ def utility_processor(): # Provide the canonical link to the current page def get_canonical_link(): - protocol = request.url.split('//')[0] - return protocol + '//' + CANONICAL_DOMAIN + request.path + # Canonical domain should always be HTTPS + return 'https://' + CANONICAL_DOMAIN + request.path # Convert an I2P url to an equivalent clearnet one def convert_url_to_clearnet(value):