diff --git a/packages/wallet-sdk/src/CoinbaseWalletSDK.native.ts b/packages/wallet-sdk/src/CoinbaseWalletSDK.native.ts index 928331c7c2..d3d1bf22aa 100644 --- a/packages/wallet-sdk/src/CoinbaseWalletSDK.native.ts +++ b/packages/wallet-sdk/src/CoinbaseWalletSDK.native.ts @@ -18,7 +18,9 @@ export class CoinbaseWalletSDK { } const url = new URL(metadata.appDeeplinkUrl); - url.pathname = `/${MOBILE_SDK_RESPONSE_PATH}`; + url.pathname += url.pathname.endsWith('/') + ? MOBILE_SDK_RESPONSE_PATH + : `/${MOBILE_SDK_RESPONSE_PATH}`; this.metadata = { appName: metadata.appName || 'Dapp',