From 9d7729fc0b783e2e6628890a5d70395d08e20a2a Mon Sep 17 00:00:00 2001 From: Davide Carpini <carpini.davide@gmail.com> Date: Tue, 20 Feb 2024 18:07:27 +0100 Subject: [PATCH] fix: link dappkit (#199) --- .../src/components/modals/connect-modal/connect-modal.ts | 3 +-- packages/dapp-kit-ui/src/constants/veworld.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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/';