diff --git a/apps/dashboard/src/main.tsx b/apps/dashboard/src/main.tsx index 0df18281db4..7998f6fae0b 100644 --- a/apps/dashboard/src/main.tsx +++ b/apps/dashboard/src/main.tsx @@ -17,7 +17,7 @@ import { ActivityFeed, } from '@/pages'; import './index.css'; -import { ROUTES } from './utils/routes'; +import { LEGACY_ROUTES, ROUTES } from './utils/routes'; import { EditWorkflowPage } from './pages/edit-workflow'; import { TestWorkflowPage } from './pages/test-workflow'; import { initializeSentry } from './utils/sentry'; @@ -157,6 +157,15 @@ const router = createBrowserRouter([ path: ROUTES.SETTINGS_BILLING, element: , }, + { + path: ROUTES.LOCAL_STUDIO_AUTH, + element: (() => { + const currentSearch = window.location.search; + window.location.href = `${LEGACY_ROUTES.LOCAL_STUDIO_AUTH}${currentSearch}&studio_path_hint=/legacy/studio`; + + return null; + })(), + }, { path: '*', element: , diff --git a/apps/dashboard/src/utils/routes.ts b/apps/dashboard/src/utils/routes.ts index 389a75bec21..a4341e938c0 100644 --- a/apps/dashboard/src/utils/routes.ts +++ b/apps/dashboard/src/utils/routes.ts @@ -8,6 +8,7 @@ export const ROUTES = { INBOX_EMBED: '/onboarding/inbox/embed', INBOX_EMBED_SUCCESS: '/onboarding/inbox/success', ROOT: '/', + LOCAL_STUDIO_AUTH: '/local-studio/auth', ENV: '/env', SETTINGS: '/settings', SETTINGS_ACCOUNT: '/settings/account', @@ -40,4 +41,5 @@ export const LEGACY_ROUTES = { SETTINGS: '/legacy/manage-account/user-profile', EDIT_WORKFLOW: '/legacy/workflows/edit/:workflowId', TEST_WORKFLOW: '/legacy/workflows/edit/:workflowId/test-workflow', + LOCAL_STUDIO_AUTH: '/legacy/local-studio/auth', };