Prepend https if needed

main
Bob Mottram 2022-05-22 11:56:19 +01:00
parent 76cd2e8465
commit 41a9fedeed
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,8 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {},
maps_url = get_config_param(base_dir, 'mapsUrl')
if not maps_url:
maps_url = 'https://www.openstreetmap.org'
if '://' not in maps_url:
maps_url = 'https://' + maps_url
location_label_with_link = \
'<a href="' + maps_url + '" ' + \
'rel="nofollow noopener noreferrer" target="_blank">' + \