diff --git a/src/status_im/utils/universal_links/core.cljs b/src/status_im/utils/universal_links/core.cljs index db4b02e2db..f940e90bf4 100644 --- a/src/status_im/utils/universal_links/core.cljs +++ b/src/status_im/utils/universal_links/core.cljs @@ -75,7 +75,7 @@ (handle-view-profile cofx (match-url url profile-regex)) (match-url url browse-regex) - (handle-browse cofx url) + (handle-browse cofx (match-url url browse-regex)) (and config/extensions-enabled? (match-url url extension-regex)) (handle-extension cofx url) diff --git a/test/cljs/status_im/test/ui/screens/add-new/models.cljs b/test/cljs/status_im/test/ui/screens/add-new/models.cljs index 97e5626d84..41544d7545 100644 --- a/test/cljs/status_im/test/ui/screens/add-new/models.cljs +++ b/test/cljs/status_im/test/ui/screens/add-new/models.cljs @@ -13,6 +13,6 @@ (get-in (models/handle-qr-code cofx "0x04e1433c1a8ad71280e6d4b1814aa3958ba6eb451da47ea1d4a4bfc4a04969c445548f3bd9d40fa7e4356aa62075b4d7615179ef1332f1d6a7c59b96c4ab8e04c1") [:db :view-id])))) (testing "handle universal link" (is (= (:browser/show-browser-selection (models/handle-qr-code cofx "status-im://browse/www.cryptokitties.co")) - "status-im://browse/www.cryptokitties.co"))) + "www.cryptokitties.co"))) (testing "handle invalid qr code" (is (:utils/show-popup (models/handle-qr-code cofx "a random string"))))) diff --git a/test/cljs/status_im/test/utils/universal_links/core.cljs b/test/cljs/status_im/test/utils/universal_links/core.cljs index e6a976ba52..d62c1f88c8 100644 --- a/test/cljs/status_im/test/utils/universal_links/core.cljs +++ b/test/cljs/status_im/test/utils/universal_links/core.cljs @@ -22,7 +22,7 @@ (testing "a browse dapp link" (testing "it open the dapps" (is - (= "status-im://browse/www.cryptokitties.co" + (= "www.cryptokitties.co" (:browser/show-browser-selection (links/handle-url {:db db} "status-im://browse/www.cryptokitties.co")))))) (testing "a user profile link" (testing "it loads the profile"