diff --git a/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java b/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java index 591bb3fc8..37b0f030c 100644 --- a/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java +++ b/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java @@ -43,7 +43,7 @@ public class AuthFileController extends BaseController { return "usr/authfile/download"; } - @RequestMapping("/download/{applicationId}") + @RequestMapping("/download/{applicationCode}") public void exportApplicationAuthFile(HttpServletRequest request, HttpServletResponse response, @PathVariable("applicationCode") String applicationCode, String authType) throws Exception { if (StringUtil.isBlank(applicationCode)) { diff --git a/skywalking-webui/src/main/webapp/download/readme.md b/skywalking-webui/src/main/webapp/download/readme.md new file mode 100644 index 000000000..af506c70f --- /dev/null +++ b/skywalking-webui/src/main/webapp/download/readme.md @@ -0,0 +1 @@ +* 用于下载文件的暂存 \ No newline at end of file diff --git a/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl b/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl index f14de2855..ff5c5aa0a 100644 --- a/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl +++ b/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl @@ -83,7 +83,7 @@ var form = $("
"); form.attr("style", "display:none"); form.attr("method", "post"); - form.attr("action", "${base}/usr/applications/authfile/download/" + applicationId); + form.attr("action", "${_base}/usr/applications/authfile/download/" + applicationId); var exportData = $(""); exportData.attr("type", "hidden"); exportData.attr("name", "exportData");