Skip to content

Automate browser based workflows with AI

Fix router not going back to tasks page from task details (#437)

Salih Altuna897a21a3f20
diff --git a/skyvern-frontend/src/router.tsx b/skyvern-frontend/src/router.tsx
index ea9179aa4..008401a49 100644
--- a/skyvern-frontend/src/router.tsx
+++ b/skyvern-frontend/src/router.tsx
@@ -34,10 +34,6 @@ const router = createBrowserRouter([
path: ":taskId",
element: <TaskDetails />,
children: [
- {
- index: true,
- element: <Navigate to="actions" />,
- },
{
path: "actions",
element: <TaskActions />,
diff --git a/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx b/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
index 4c6925176..37ea2539b 100644
--- a/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
+++ b/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
@@ -87,7 +87,7 @@ function TaskHistory() {
<TableCell
className="w-1/4 cursor-pointer"
onClick={() => {
- navigate(task.task_id);
+ navigate(`${task.task_id}/actions`);
}}
>
{task.task_id}
@@ -95,7 +95,7 @@ function TaskHistory() {
<TableCell
className="w-1/4 cursor-pointer max-w-64 overflow-hidden whitespace-nowrap overflow-ellipsis"
onClick={() => {
- navigate(task.task_id);
+ navigate(`${task.task_id}/actions`);
}}
>
{task.request.url}
@@ -103,7 +103,7 @@ function TaskHistory() {
<TableCell
className="w-1/6 cursor-pointer"
onClick={() => {
- navigate(task.task_id);
+ navigate(`${task.task_id}/actions`);
}}
>
<StatusBadge status={task.status} />
@@ -111,7 +111,7 @@ function TaskHistory() {
<TableCell
className="w-1/4 cursor-pointer"
onClick={() => {
- navigate(task.task_id);
+ navigate(`${task.task_id}/actions`);
}}
>
{basicTimeFormat(task.created_at)}