I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e51ae4a2 authored by str4d's avatar str4d
Browse files

Canonical domain should always be HTTPS

parent ace18e4e
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment