forked from I2P_Developers/i2p.www
Canonical domain should always be HTTPS
This commit is contained in:
@@ -45,8 +45,8 @@ def utility_processor():
|
|||||||
|
|
||||||
# Provide the canonical link to the current page
|
# Provide the canonical link to the current page
|
||||||
def get_canonical_link():
|
def get_canonical_link():
|
||||||
protocol = request.url.split('//')[0]
|
# Canonical domain should always be HTTPS
|
||||||
return protocol + '//' + CANONICAL_DOMAIN + request.path
|
return 'https://' + CANONICAL_DOMAIN + request.path
|
||||||
|
|
||||||
# Convert an I2P url to an equivalent clearnet one
|
# Convert an I2P url to an equivalent clearnet one
|
||||||
def convert_url_to_clearnet(value):
|
def convert_url_to_clearnet(value):
|
||||||
|
Reference in New Issue
Block a user