diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e1224832..f6a3d13a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -27,7 +27,7 @@ function AppContent() { } /> } /> } /> - } /> + { - // Navigate to the correct repo session URL pattern - const currentPath = window.location.pathname - const repoMatch = currentPath.match(/\/repos\/(\d+)\/sessions\//) - if (repoMatch) { - const repoId = repoMatch[1] - navigate(`/repos/${repoId}/sessions/${sessionID}`) - } else { - // Fallback for direct session access - navigate(`/session/${sessionID}`) - } + navigate(`/repos/${repoId}/sessions/${sessionID}`) setSessionsDialogOpen(false) }} />