Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-hats-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Fix metamask deeplink parsing
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
onBack?: () => void;
client: ThirdwebClient;
}) => {
const link = encodeURIComponent(window.location.toString());
let link = window.location.toString();
if (props.wallet.id === "io.metamask") {
link = link.replace("https://", "");
} else {
link = encodeURIComponent(link);
}

Check warning on line 33 in packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/DeepLinkConnectUI.tsx#L28-L33

Added lines #L28 - L33 were not covered by tests
const deeplink = `${props.deepLinkPrefix}${link}?ref=${link}`;
return (
<Container animate="fadein">
Expand Down
Loading