fix(config-ui): project name not encode in blueprint connection page (#4885)

diff --git a/config-ui/src/pages/blueprint/detail/blueprint-detail.tsx b/config-ui/src/pages/blueprint/detail/blueprint-detail.tsx
index fc11c8d..e7e3381 100644
--- a/config-ui/src/pages/blueprint/detail/blueprint-detail.tsx
+++ b/config-ui/src/pages/blueprint/detail/blueprint-detail.tsx
@@ -41,7 +41,10 @@
   const paths = useMemo(
     () =>
       from === FromEnum.project
-        ? [`/projects/${pname}/${id}/connection-add`, `/projects/${pname}/${id}/`]
+        ? [
+            `/projects/${window.encodeURIComponent(pname ?? '')}/${id}/connection-add`,
+            `/projects/${window.encodeURIComponent(pname ?? '')}/${id}/`,
+          ]
         : [`/blueprints/${id}/connection-add`, `/blueprints/${id}/`],
     [from, pname],
   );