From ba00d90c43f93cc8154b81d81d7e2d4910a1641a Mon Sep 17 00:00:00 2001 From: Lucas Petrino Date: Wed, 7 Aug 2024 22:06:05 +1200 Subject: [PATCH] Fix log not loading when '&' in name --- ui/src/components/molecules/NodeStatusTableRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/molecules/NodeStatusTableRow.tsx b/ui/src/components/molecules/NodeStatusTableRow.tsx index 29b68076..6a5712af 100644 --- a/ui/src/components/molecules/NodeStatusTableRow.tsx +++ b/ui/src/components/molecules/NodeStatusTableRow.tsx @@ -22,7 +22,7 @@ function NodeStatusTableRow({ file, onRequireModal, }: Props) { - const url = `/dags/${name}/log?file=${file}&step=${node.Step.Name}`; + const url = `/dags/${name}/log?file=${file}&step=${encodeURIComponent(node.Step.Name)}`; const buttonStyle = { margin: '0px', padding: '0px',