소스 검색

feat: show path variable friendly in tool edit (#7344)

wellCh4n 8 달 전
부모
커밋
9e6b755f62
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/app/components/tools/edit-custom-collection-modal/index.tsx

+ 1 - 1
web/app/components/tools/edit-custom-collection-modal/index.tsx

@@ -169,7 +169,7 @@ const EditCustomCollectionModal: FC<Props> = ({
       return ''
 
     try {
-      const path = new URL(url).pathname
+      const path = decodeURI(new URL(url).pathname)
       return path || ''
     }
     catch (e) {