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

@@ -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"
>