diff --git a/graph/client/src/app/ui-tooltips/project-node-actions.tsx b/graph/client/src/app/ui-tooltips/project-node-actions.tsx index 2d19cafae7630..e9c3c8e8ce301 100644 --- a/graph/client/src/app/ui-tooltips/project-node-actions.tsx +++ b/graph/client/src/app/ui-tooltips/project-node-actions.tsx @@ -11,6 +11,7 @@ export function ProjectNodeActions({ id }: ProjectNodeToolTipProps) { projectGraphService.getSnapshot().context.tracing; const routeConstructor = useRouteConstructor(); const navigate = useNavigate(); + const encodedId = encodeURIComponent(id); function onExclude() { projectGraphService.send({ @@ -21,17 +22,13 @@ export function ProjectNodeActions({ id }: ProjectNodeToolTipProps) { } function onStartTrace() { - navigate( - routeConstructor(`/projects/trace/${encodeURIComponent(id)}`, true) - ); + navigate(routeConstructor(`/projects/trace/${encodedId}`, true)); } function onEndTrace() { navigate( routeConstructor( - `/projects/trace/${encodeURIComponent(start)}/${encodeURIComponent( - id - )}`, + `/projects/trace/${encodeURIComponent(start)}/${encodedId}`, true ) ); @@ -39,7 +36,7 @@ export function ProjectNodeActions({ id }: ProjectNodeToolTipProps) { return (
- + Focus Exclude