Canonical domain should always be HTTPS

This commit is contained in:
str4d
2013-10-26 20:45:46 +00:00
parent ace18e4e20
commit e51ae4a2c8

View File

@@ -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):