Skip to content

Commit d3b0828

Browse files
Merge pull request #650 from farhan-nurzi-deriv/farhan/TRAH-3508/wallets-redirection
Farhan/Fix wallet redirection
2 parents fd13b1d + dce4ff7 commit d3b0828

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/javascript/app/base/header.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,9 @@ const Header = (() => {
286286
});
287287

288288
// Make cta link in dropdown dynamic depending on account type (wallet or non-wallet)
289-
const wallets_hub_link = Url.urlForDeriv('wallets', `ext_platform_url=${ext_platform_url}`);
290-
const traders_hub_link = Url.urlForDeriv('appstore/traders-hub', `ext_platform_url=${ext_platform_url}`);
289+
const traders_hub_link = Url.urlForDeriv('', `ext_platform_url=${ext_platform_url}`);
291290
const platform_dropdown_cta_container = createElement('div', { class: 'platform__dropdown-cta' });
292-
const platform_dropdown_cta_link = createElement('a', { text: localize('Looking for CFDs? Go to Trader\'s hub'), class: ' platform__dropdown-cta--link', href: `${Client.isLoggedIn() && Client.hasWalletsAccount() ? wallets_hub_link : traders_hub_link}` });
291+
const platform_dropdown_cta_link = createElement('a', { text: localize('Looking for CFDs? Go to Trader\'s hub'), class: ' platform__dropdown-cta--link', href: traders_hub_link });
293292

294293
platform_dropdown_cta_container.appendChild(platform_dropdown_cta_link);
295294
platform_list.appendChild(platform_dropdown_cta_container.cloneNode(true));
@@ -411,9 +410,8 @@ const Header = (() => {
411410

412411
// Dynamic link for trader's hub cta for mobile menu
413412
const mobile_platform_appstore_link = getElementById('url-appstore');
414-
const wallets_hub_link = Url.urlForDeriv('wallets', `ext_platform_url=${ext_platform_url}`);
415-
const traders_hub_link = Url.urlForDeriv('appstore/traders-hub', `ext_platform_url=${ext_platform_url}`);
416-
mobile_platform_appstore_link.href = Client.hasWalletsAccount() ? wallets_hub_link : traders_hub_link;
413+
const traders_hub_link = Url.urlForDeriv('', `ext_platform_url=${ext_platform_url}`);
414+
mobile_platform_appstore_link.href = traders_hub_link;
417415

418416
// Account Switcher Event
419417
const acc_switcher = Client.hasWalletsAccount() ? getElementById('wallet_switcher') : getElementById('acc_switcher');

0 commit comments

Comments
 (0)