From 302ceeaffb346c2181a32a785e91c4b06d8687b5 Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Thu, 9 Jul 2020 02:04:01 -0500 Subject: [PATCH] Correctly handle IRIs --- Mac/Browser.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Browser.swift b/Mac/Browser.swift index dfcbb1571..5f8b7a0ee 100644 --- a/Mac/Browser.swift +++ b/Mac/Browser.swift @@ -43,7 +43,7 @@ struct Browser { /// - Note: Some browsers (specifically Chromium-derived ones) will ignore the request /// to open in the background. static func open(_ urlString: String, inBackground: Bool) { - if let url = URL(string: urlString) { + if let url = URL(unicodeString: urlString) { if let defaultBrowser = defaultBrowser { defaultBrowser.openURL(url, inBackground: inBackground) } else {