diff --git a/web/src/middleware/publicPageMiddleware.ts b/web/src/middleware/publicPageMiddleware.ts index 14be4f468..899186f55 100644 --- a/web/src/middleware/publicPageMiddleware.ts +++ b/web/src/middleware/publicPageMiddleware.ts @@ -5,7 +5,8 @@ import { NextRequest } from 'next/server'; const assetCheckPages: BusterRoutes[] = [ BusterRoutes.APP_METRIC_ID, BusterRoutes.APP_DASHBOARD_ID, - BusterRoutes.APP_DASHBOARD_METRICS_ID + BusterRoutes.APP_DASHBOARD_METRICS_ID, + BusterRoutes.APP_CHAT ]; const publicPages: BusterRoutes[] = [ diff --git a/web/src/routes/helpers.tsx b/web/src/routes/helpers.tsx index d126c13dc..3ea2d9d58 100644 --- a/web/src/routes/helpers.tsx +++ b/web/src/routes/helpers.tsx @@ -6,6 +6,13 @@ export const pathNameToRoute = (pathName: string, params: any): BusterRoutes => }); const paramRoutesToParent: Record = { + [BusterRoutes.APP_CHAT_ID]: BusterRoutes.APP_CHAT, + [BusterRoutes.APP_CHAT_ID_DASHBOARD_ID]: BusterRoutes.APP_CHAT, + [BusterRoutes.APP_CHAT_ID_METRIC_ID]: BusterRoutes.APP_CHAT, + [BusterRoutes.APP_CHAT_ID_COLLECTION_ID]: BusterRoutes.APP_CHAT, + [BusterRoutes.APP_CHAT_ID_REASONING_ID]: BusterRoutes.APP_CHAT, + [BusterRoutes.APP_CHAT_ID_TERM_ID]: BusterRoutes.APP_CHAT, + [BusterRoutes.APP_CHAT_ID_VALUE_ID]: BusterRoutes.APP_CHAT, [BusterRoutes.APP_METRIC_ID]: BusterRoutes.APP_METRIC, [BusterRoutes.APP_DASHBOARD_METRICS_ID]: BusterRoutes.APP_DASHBOARDS, [BusterRoutes.APP_DASHBOARD_ID]: BusterRoutes.APP_DASHBOARDS,