From 8258867407315ed3e5a7da22ec0f9e7238fa3ecf Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Mon, 27 Nov 2023 21:29:43 +0100 Subject: [PATCH] Open URLs without prefix --- qml/js/functions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qml/js/functions.js b/qml/js/functions.js index 7299b0d..b2e2ca7 100644 --- a/qml/js/functions.js +++ b/qml/js/functions.js @@ -448,7 +448,12 @@ function handleLink(link) { } else if (link.indexOf(tMePrefixHttp) === 0) { handleTMeLink(link, tMePrefixHttp); } else { - Qt.openUrlExternally(link); + Debug.log("Trying to open URL externally: " + link) + if (link.indexOf("://") === -1) { + Qt.openUrlExternally("https://" + link) + } else { + Qt.openUrlExternally(link); + } } } }