Add legacy bang url redirects

This commit is contained in:
Bill Thornton
2024-07-24 15:12:33 -04:00
parent dce7a36fcf
commit ba8fb5eb81
3 changed files with 46 additions and 0 deletions
+6
View File
@@ -12,6 +12,7 @@ import AppLayout from '../AppLayout';
import { REDIRECTS } from './_redirects';
import { ASYNC_USER_ROUTES } from './asyncRoutes';
import { LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './legacyRoutes';
import BangRedirect from 'components/router/BangRedirect';
export const STABLE_APP_ROUTES: RouteObject[] = [
{
@@ -34,6 +35,11 @@ export const STABLE_APP_ROUTES: RouteObject[] = [
]
},
{
path: '!/*',
Component: BangRedirect
},
/* Redirects for old paths */
...REDIRECTS.map(toRedirectRoute)
];