Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion actions/OpenInBrowser/OpenInBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import os
from PIL import Image
import webbrowser
from urllib.parse import urlparse

# Import gtk modules
import gi
Expand Down Expand Up @@ -60,7 +61,8 @@ def open_url(self, url):
if url in [None, ""]:
return

if not url.startswith("http://") and not url.startswith("https://"):
# Allow any custom scheme, but default to https when no scheme is provided
if not urlparse(url).scheme:
url = "https://" + url

new = 1 if self.get_settings().get("new_window", False) else 0
Expand Down