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} key={run.workflow_run_id}
className="cursor-pointer" className="cursor-pointer"
onClick={(event) => { onClick={(event) => {
handleNavigate(event, `/runs/${run.workflow_run_id}`); handleNavigate(
event,
`/workflows/${run.workflow_permanent_id}/${run.workflow_run_id}/overview`,
);
}} }}
> >
<TableCell <TableCell

View File

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

View File

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

View File

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