diff --git a/packages/dapp-kit-ui/src/components/modals/connect-modal/connect-modal.ts b/packages/dapp-kit-ui/src/components/modals/connect-modal/connect-modal.ts index 71bf5eb8..5cd47363 100644 --- a/packages/dapp-kit-ui/src/components/modals/connect-modal/connect-modal.ts +++ b/packages/dapp-kit-ui/src/components/modals/connect-modal/connect-modal.ts @@ -103,9 +103,8 @@ export class ConnectModal extends LitElement { onSourceClick = (source?: SourceInfo): void => { if (source) { if (source.id === 'veworld' && !window.vechain) { - const path = `${location.host}${location.pathname}${location.search}`; window.open( - `${VEWORLD_WEBSITE}/?discoveryUrl=${path}`, + `${VEWORLD_WEBSITE}${encodeURIComponent(location.href)}`, '_self', ); return; diff --git a/packages/dapp-kit-ui/src/constants/veworld.ts b/packages/dapp-kit-ui/src/constants/veworld.ts index 6676ad83..f0d3de4f 100644 --- a/packages/dapp-kit-ui/src/constants/veworld.ts +++ b/packages/dapp-kit-ui/src/constants/veworld.ts @@ -1 +1 @@ -export const VEWORLD_WEBSITE = 'https://veworld.com'; +export const VEWORLD_WEBSITE = 'https://www.veworld.com/discover/browser/ul/';