diff --git a/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/SystemController.java b/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/SystemController.java index 1bcc7bfc8c..35f682b020 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/SystemController.java +++ b/fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/SystemController.java @@ -190,6 +190,10 @@ public class SystemController extends BaseController { if (path == null) { return "/rest/v1/system"; } else { + final String windowsFileSystemSeparator = "\\"; + if (windowsFileSystemSeparator.equals(path.getFileSystem().getSeparator())) { + return "/rest/v1/system?path=" + path.toString().replace("\\", "/"); + } return "/rest/v1/system?path=" + path.toString(); } } diff --git a/ui/src/components/table/table.utils.tsx b/ui/src/components/table/table.utils.tsx index 40ece58f1e..a3fad4b40b 100644 --- a/ui/src/components/table/table.utils.tsx +++ b/ui/src/components/table/table.utils.tsx @@ -30,7 +30,10 @@ function getLinkItem(text, record, index, isInner, item, hrefColumn, path){ if (record.__hrefPaths[hrefColumn.indexOf(item)].includes('http')) { return {text}; } - return {text}; + if (location.search[location.search.length -1] === '/') { + return {text}; + } + return {text}; } return text === '\\N' ? '-' : text; }