diff --git a/themes/gatsby-theme-deriv/src/common/constants.ts b/themes/gatsby-theme-deriv/src/common/constants.ts index 09b138e3ed9..73276e1042e 100644 --- a/themes/gatsby-theme-deriv/src/common/constants.ts +++ b/themes/gatsby-theme-deriv/src/common/constants.ts @@ -59,7 +59,8 @@ export const deriv_life_url = `https://derivlife.com/` export const academy_url = `https://academy.deriv.com/` export const derivx_app_url = `${deriv_app_url}/derivx` export const smarttrader_url = `https://smarttrader.${getDomainUrl()}` -export const traders_hub = 'https://app.deriv.com/appstore/traders-hub' +export const traders_hub = 'https://app.deriv.com/' +export const dtrader_url = 'https://app.deriv.com/dtrader' export const binary_bot_url = `https://bot.${getDomainUrl()}` export const blog_url = `https://blog.${deriv_com_url}` export const deriv_cookie_domain = getDomainUrl() @@ -133,7 +134,7 @@ export const ctrader_ios_url = export const how_to_trade_accumulator_video_id = '917007011' export const what_are_accumulator_video_id = '915479906' export const ctrader_web_browser_url = 'ct.deriv.com' -export const ctrader_traders_hub_url = ' https://app.deriv.com/appstore/traders-hub' +export const ctrader_traders_hub_url = ' https://app.deriv.com/' export const ctrader_windows_url = 'https://getctrader.com/deriv/ctrader-deriv-setup.exe' export const ctrader_apple_store_url = ' https://apps.apple.com/us/app/deriv-ctrader/id6466996509' export const ctrader_mac_os_url = 'https://getctradermac.com/deriv/ctrader-deriv-setup.dmg' diff --git a/themes/gatsby-theme-deriv/src/common/utility.ts b/themes/gatsby-theme-deriv/src/common/utility.ts index 8b635b003a3..2281262a3f4 100644 --- a/themes/gatsby-theme-deriv/src/common/utility.ts +++ b/themes/gatsby-theme-deriv/src/common/utility.ts @@ -82,7 +82,7 @@ export const getDerivAppLocalizedURL = (link: string, locale: string, to = '') = export const TradersHubURL: ProductLinkGenerator = ({ locale }) => { const lang = deriv_app_languages.includes(locale) ? locale : 'en' - return `https://app.deriv.com/appstore/traders-hub?lang=${lang.toUpperCase()}` + return `https://app.deriv.com/?lang=${lang.toUpperCase()}` } export const getSmartTraderLocalizedURL = (link: string, locale: string) => { const lang = smart_trader_languages.includes(locale) ? locale : 'en' @@ -245,7 +245,7 @@ const getLimit = (input: string, limit: number) => { export const truncateString = (input: string, limit: number) => input.length > limit ? `${input.substring(0, getLimit(input, limit))}...` : input // Function which returns sub path to the specific trading platform -const supported_platforms = ['mt5', 'bot', 'derivx'] +const supported_platforms = ['mt5', 'bot', 'derivx', 'dtrader'] export const redirectToTradingPlatform = () => supported_platforms.filter( (platform) => window.location.pathname.includes(platform) && platform, diff --git a/themes/gatsby-theme-deriv/src/components/custom/_dhero.tsx b/themes/gatsby-theme-deriv/src/components/custom/_dhero.tsx index 46d307fd028..43f306a5eb0 100644 --- a/themes/gatsby-theme-deriv/src/components/custom/_dhero.tsx +++ b/themes/gatsby-theme-deriv/src/components/custom/_dhero.tsx @@ -16,6 +16,7 @@ import { Container } from 'components/containers' import { useIsRtl } from 'components/hooks/use-isrtl' import useBuildVariant from 'features/hooks/use-build-variant' import { breakpoints } from 'themes/theme.breakpoints' +import { dtrader_url } from 'common/constants' type DHeroProps = { is_live_demo?: boolean @@ -204,7 +205,7 @@ const DHero = ({ join_us_for_free, is_live_demo, image_name }: DHeroProps) => { diff --git a/themes/gatsby-theme-deriv/src/components/custom/utils.tsx b/themes/gatsby-theme-deriv/src/components/custom/utils.tsx index c0bca09effc..fddcc392ff0 100644 --- a/themes/gatsby-theme-deriv/src/components/custom/utils.tsx +++ b/themes/gatsby-theme-deriv/src/components/custom/utils.tsx @@ -17,7 +17,7 @@ export const handleGetTrading = () => { export const handleRedirectToTradersHub = () => { const trading_hub_url_localized = getDerivAppLocalizedURL( - `${deriv_app_url}/appstore/traders-hub`, + `${deriv_app_url}`, getLanguage(), ) const redirect_link = addQueryParam(trading_hub_url_localized, 'redirect_from', 'deriv_com') diff --git a/themes/gatsby-theme-deriv/src/features/pages/ctrader-manage/ctrader-manage-data.tsx b/themes/gatsby-theme-deriv/src/features/pages/ctrader-manage/ctrader-manage-data.tsx index 0a01484e873..3faad976159 100644 --- a/themes/gatsby-theme-deriv/src/features/pages/ctrader-manage/ctrader-manage-data.tsx +++ b/themes/gatsby-theme-deriv/src/features/pages/ctrader-manage/ctrader-manage-data.tsx @@ -30,7 +30,7 @@ export const ctrader_manage_data: CtraderManageDataType = { button_url: { type: 'non-company', target: '_blank', - href: 'https://app.deriv.com/appstore/traders-hub', + href: 'https://app.deriv.com/', }, image_url: {'_t_Add, image_url_mobile: ( @@ -77,7 +77,7 @@ export const ctrader_manage_data: CtraderManageDataType = { button_url: { type: 'non-company', target: '_blank', - href: 'https://app.deriv.com/appstore/traders-hub', + href: 'https://app.deriv.com/', }, button_text: "_t_Go to Trader's Hub_t_", }, diff --git a/themes/gatsby-theme-deriv/src/pages/derivx/_get-derivx.tsx b/themes/gatsby-theme-deriv/src/pages/derivx/_get-derivx.tsx index a12bdad2ca3..8d6d6c780a0 100644 --- a/themes/gatsby-theme-deriv/src/pages/derivx/_get-derivx.tsx +++ b/themes/gatsby-theme-deriv/src/pages/derivx/_get-derivx.tsx @@ -18,6 +18,7 @@ import { derivx_huawei_url, derivx_ios_url, derivx_app_url, + traders_hub, } from 'common/constants' import DownloadColumn, { TDownloadColumnItem } from 'components/custom/_multi-width-column-download' import { localize } from 'components/localization' @@ -85,7 +86,7 @@ const DerivXGetApp = () => { { text: 'Web Browser', icon: BrowserIcon, - link: derivx_app_url, + link: traders_hub, smallText: '_t_Use it on your_t_', visibility: deriv_x_apps_web_browser, }, diff --git a/themes/gatsby-theme-deriv/src/pages/dmt5-trading-signals/_signal-steps.tsx b/themes/gatsby-theme-deriv/src/pages/dmt5-trading-signals/_signal-steps.tsx index 2ccf63bc010..6c3e9d625cf 100644 --- a/themes/gatsby-theme-deriv/src/pages/dmt5-trading-signals/_signal-steps.tsx +++ b/themes/gatsby-theme-deriv/src/pages/dmt5-trading-signals/_signal-steps.tsx @@ -91,7 +91,7 @@ const provider: TContent = {
, {