This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 123074765 fix: project with '/' can not delete (#6736)
123074765 is described below
commit 1230747653356cb5becbdc25917bfaade65eb655
Author: abeizn <[email protected]>
AuthorDate: Thu Jan 4 17:42:18 2024 +0800
fix: project with '/' can not delete (#6736)
---
config-ui/src/pages/blueprint/connection-detail/index.tsx | 2 +-
config-ui/src/pages/project/detail/index.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config-ui/src/pages/blueprint/connection-detail/index.tsx
b/config-ui/src/pages/blueprint/connection-detail/index.tsx
index a2fb25a88..bf126771e 100644
--- a/config-ui/src/pages/blueprint/connection-detail/index.tsx
+++ b/config-ui/src/pages/blueprint/connection-detail/index.tsx
@@ -157,7 +157,7 @@ export const BlueprintConnectionDetailPage = () => {
pname
? [
{ name: 'Projects', path: '/projects' },
- { name: pname, path: `/projects/${pname}` },
+ { name: pname, path: `/projects/${encodeName(pname)}` },
{ name: `Connection - ${connection.name}`, path: '' },
]
: [
diff --git a/config-ui/src/pages/project/detail/index.tsx
b/config-ui/src/pages/project/detail/index.tsx
index bec4144f4..e6b8d36a2 100644
--- a/config-ui/src/pages/project/detail/index.tsx
+++ b/config-ui/src/pages/project/detail/index.tsx
@@ -56,7 +56,7 @@ export const ProjectDetailPage = () => {
<PageHeader
breadcrumbs={[
{ name: 'Projects', path: '/projects' },
- { name: data.name, path: `/projects/${pname}` },
+ { name: data.name, path: `/projects/${encodeName(pname)}` },
]}
>
<S.Wrapper>