diff --git a/src/status_im/utils/http.cljs b/src/status_im/utils/http.cljs index 38fde2dbd4..1fa7d3f8a4 100644 --- a/src/status_im/utils/http.cljs +++ b/src/status_im/utils/http.cljs @@ -112,7 +112,10 @@ (.catch (or on-error #()))))) (defn normalize-url [url] - (str (when (and (string? url) (not (re-find #"^[a-zA-Z-_]+:/" url))) "https://") url)) + (str (when (and (string? url) + (not (re-find #"^[a-zA-Z-_]+:/" url))) + "https://") + ((fnil string/trim "") url))) (def normalize-and-decode-url (comp js/decodeURI normalize-url))