revert back to old run URL for workflows (#3913)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user