We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669a95f commit 760b250Copy full SHA for 760b250
.changeset/angry-hats-start.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Fix metamask deeplink parsing
packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx
@@ -25,7 +25,12 @@ export const DeepLinkConnectUI = (props: {
25
onBack?: () => void;
26
client: ThirdwebClient;
27
}) => {
28
- const link = encodeURIComponent(window.location.toString());
+ let link = window.location.toString();
29
+ if (props.wallet.id === "io.metamask") {
30
+ link = link.replace("https://", "");
31
+ } else {
32
+ link = encodeURIComponent(link);
33
+ }
34
const deeplink = `${props.deepLinkPrefix}${link}?ref=${link}`;
35
return (
36
<Container animate="fadein">
0 commit comments