diff --git a/kitty/window.py b/kitty/window.py index d553a79dd..a7b88b651 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -508,7 +508,7 @@ class Window: except Exception: hostname = '' remote_hostname = purl.netloc.partition(':')[0] - if remote_hostname and remote_hostname != hostname: + if remote_hostname and remote_hostname != hostname and remote_hostname != 'localhost': self.handle_remote_file(purl.netloc, unquote(purl.path)) return if self.opts.allow_hyperlinks & 0b10: