From 41a9fedeedb5b6720b94b7931cc3ebb74ddcd8eb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 May 2022 11:56:19 +0100 Subject: [PATCH] Prepend https if needed --- webapp_create_post.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp_create_post.py b/webapp_create_post.py index 0e6debae6..b57866348 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -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 = \ '' + \