From 1006254090d9d8bd10789e7378b9c9ca21ce057a Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Mon, 9 Feb 2026 23:23:26 -0500 Subject: [PATCH] fix: update landing page routing based on domain conditions --- src/contexts/RouterContext.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contexts/RouterContext.jsx b/src/contexts/RouterContext.jsx index 51c2208..72c983a 100644 --- a/src/contexts/RouterContext.jsx +++ b/src/contexts/RouterContext.jsx @@ -10,7 +10,6 @@ import Settings from '@/views/Settings/Settings' import SettingsOverview from '@/views/Settings/SettingsOverview' import SettingsRoutes from '@/views/Settings/SettingsRoutes' import ThemeSettings from '@/views/Settings/ThemeSettings' -import { Capacitor } from '@capacitor/core' import { RouterProvider, createBrowserRouter } from 'react-router-dom' import AuthenticationLoading from '../views/Authorization/Authenticating' import ForgotPasswordView from '../views/Authorization/ForgotPasswordView' @@ -46,8 +45,9 @@ import UserActivities from '../views/User/UserActivities' import UserPoints from '../views/User/UserPoints' const getMainRoute = () => { if ( - import.meta.env.VITE_IS_LANDING_DEFAULT === 'true' && - !Capacitor.isNativePlatform() + // if domain is www.donetick.com or donetick.com then show landing page: + window.location.hostname === 'www.donetick.com' || + window.location.hostname === 'donetick.com' ) { return } @@ -183,7 +183,7 @@ const Router = createBrowserRouter([ element: , }, { - path: '/landing', + path: '/welcome', element: , }, {