From 92406ec70592edebea44abffbb83ede089f1d531 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 8 Apr 2024 14:15:55 +0300 Subject: [PATCH] Prepare the PR to redirect to the https://app.splash.trade with UTM. --- src/ApplicationRoutes.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ApplicationRoutes.tsx b/src/ApplicationRoutes.tsx index b3dca042e..b7f8caffe 100644 --- a/src/ApplicationRoutes.tsx +++ b/src/ApplicationRoutes.tsx @@ -133,6 +133,9 @@ export const routesConfig: RouteConfigExtended[] = [ ], }, ]; +const redirectToURL = (url: string) => { + window.location.replace(url); +}; export const ApplicationRoutes: FC = () => { const routes = useRoutes(routesConfig); @@ -148,6 +151,8 @@ export const ApplicationRoutes: FC = () => { user.set('theme_active', settings.theme); user.set('locale_active', settings.lang); + + redirectToURL('https://app.splash.trade?utm_source=spectrumapp'); }, []); return (