Skip to content

Commit

Permalink
修复extensionName为需要encode的字符时不匹配的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed Aug 12, 2024
1 parent ac1682a commit c2c39e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/portal-web/config/portal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ shell: true
# children: []

uiExtension:
- name: test1
- name: test测试
url: http://localhost:16566
4 changes: 3 additions & 1 deletion libs/web/src/extensions/navigations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export const toNavItemProps = (

if (isUrl(returnedPath)) { return returnedPath; }
const parts = ["/extensions"];
if (extensionName) { parts.push(extensionName); }
if (extensionName) {
parts.push(encodeURIComponent(extensionName));
}
parts.push(returnedPath);
return join(...parts);
};
Expand Down

0 comments on commit c2c39e7

Please sign in to comment.