Skip to content

Commit

Permalink
Prepare the PR to redirect to the https://app.splash.trade with UTM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry committed Apr 8, 2024
1 parent bd8459f commit 92406ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ApplicationRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export const routesConfig: RouteConfigExtended[] = [
],
},
];
const redirectToURL = (url: string) => {
window.location.replace(url);
};

export const ApplicationRoutes: FC = () => {
const routes = useRoutes(routesConfig);
Expand All @@ -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 (
Expand Down

0 comments on commit 92406ec

Please sign in to comment.