Skip to content

Commit

Permalink
Open URLs without prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wunderfitz committed Nov 27, 2023
1 parent 61faf0f commit 8258867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qml/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit 8258867

Please sign in to comment.