Web address should include prefix

main
Bob Mottram 2022-05-10 19:56:01 +01:00
parent e6d02454fc
commit 3702d52c7e
1 changed files with 4 additions and 2 deletions

View File

@ -203,9 +203,11 @@ def html_person_options(default_timeline: str,
': <a href="mailto:' + \
email_address + '">' + remove_html(email_address) + '</a></p>\n'
if web_address:
web_str = remove_html(web_address)
if '://' not in web_str:
web_str = 'https://' + web_str
options_str += \
'<p class="imText">🌐 ' + \
'<a href="' + remove_html(web_address) + '">' + \
'<p class="imText">🌐 <a href="' + web_str + '">' + \
web_address + '</a></p>\n'
if xmpp_address:
options_str += \