From 3cde493b997acaee9baf765452fdfaa1e40bd0f2 Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Wed, 21 Feb 2024 16:36:39 -0500 Subject: [PATCH] fix(graph): fix open project with / in name (#21722) Co-authored-by: Jason Jean --- packages/nx/src/command-line/graph/graph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/graph/graph.ts b/packages/nx/src/command-line/graph/graph.ts index 9cfe18d136a19..6343e8b5662e0 100644 --- a/packages/nx/src/command-line/graph/graph.ts +++ b/packages/nx/src/command-line/graph/graph.ts @@ -465,7 +465,7 @@ export async function generateGraph( url.pathname = args.view; if (args.focus) { - url.pathname += '/' + args.focus; + url.pathname += '/' + encodeURIComponent(args.focus); } if (target) {