diff --git a/kitty/window.py b/kitty/window.py index 1cb593781..9f2b5991c 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -813,7 +813,7 @@ class Window: except Exception: hostname = '' remote_hostname = purl.netloc.partition(':')[0] - if True or remote_hostname and remote_hostname != hostname and remote_hostname != 'localhost': + if remote_hostname and remote_hostname != hostname and remote_hostname != 'localhost': self.handle_remote_file(purl.netloc, unquote(purl.path)) return url = urlunparse(purl._replace(netloc=''))