Skip to content

Commit e8f6793

Browse files
PROD-2077 #comment create redirect from obsolete self-service dashboard route #time 15m
1 parent 416a83e commit e8f6793

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src-ts/tools/work/work.routes.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Navigate } from 'react-router-dom'
2+
13
import { PlatformRoute } from '../../lib'
24

35
import Work, { toolTitle } from './Work'
@@ -39,4 +41,11 @@ export const workRoutes: Array<PlatformRoute> = [
3941
route: workRootRoute,
4042
title: toolTitle,
4143
},
44+
{
45+
children: [],
46+
element: <Navigate to={workRootRoute} />,
47+
enabled: true,
48+
route: `${selfServiceRootRoute}/dashboard`,
49+
title: 'Obsolete Self Service Dashboard',
50+
},
4251
]

0 commit comments

Comments
 (0)