revert back to old run URL for workflows (#3913)

This commit is contained in:
Jonathan Dobson
2025-11-05 10:47:24 -05:00
committed by GitHub
parent 75948053b9
commit b3448c6373
4 changed files with 14 additions and 5 deletions

View File

@@ -183,7 +183,10 @@ function RunHistory() {
key={run.workflow_run_id}
className="cursor-pointer"
onClick={(event) => {
handleNavigate(event, `/runs/${run.workflow_run_id}`);
handleNavigate(
event,
`/workflows/${run.workflow_permanent_id}/${run.workflow_run_id}/overview`,
);
}}
>
<TableCell

View File

@@ -302,7 +302,9 @@ function TaskDetails() {
) : (
workflow &&
workflowRun && (
<Link to={`/runs/${workflowRun.workflow_run_id}`}>
<Link
to={`/workflows/${workflow.workflow_permanent_id}/${workflowRun.workflow_run_id}/overview`}
>
{workflow.title}
</Link>
)

View File

@@ -246,7 +246,9 @@ function RunWorkflowForm({
queryClient.invalidateQueries({
queryKey: ["runs"],
});
navigate(`/runs/${response.data.workflow_run_id}`);
navigate(
`/workflows/${workflowPermanentId}/${response.data.workflow_run_id}/overview`,
);
},
onError: (error: AxiosError) => {
const detail = (error.response?.data as { detail?: string })?.detail;

View File

@@ -189,13 +189,15 @@ function WorkflowPage() {
if (event.ctrlKey || event.metaKey) {
window.open(
window.location.origin +
`/runs/${workflowRun.workflow_run_id}`,
`/workflows/${workflowPermanentId}/${workflowRun.workflow_run_id}/overview`,
"_blank",
"noopener,noreferrer",
);
return;
}
navigate(`/runs/${workflowRun.workflow_run_id}`);
navigate(
`/workflows/${workflowPermanentId}/${workflowRun.workflow_run_id}/overview`,
);
}}
className="cursor-pointer"
>