diff --git a/server/src/main/resources/web/csv.ftl b/server/src/main/resources/web/csv.ftl
index b68587ca..d41dd31a 100644
--- a/server/src/main/resources/web/csv.ftl
+++ b/server/src/main/resources/web/csv.ftl
@@ -13,12 +13,12 @@
 <script src="xspreadsheet/zh-cn.js"></script>
 <script src="js/base64.min.js" type="text/javascript"></script>
 </head>
-	<#if pdfUrl?contains("http://") || pdfUrl?contains("https://")>
-    <#assign finalUrl="${pdfUrl}">
-    <#elseif pdfUrl?contains("ftp://") >
-  <#assign finalUrl="${pdfUrl}">
+	<#if csvUrl?contains("http://") || csvUrl?contains("https://")>
+    <#assign finalUrl="${csvUrl}">
+    <#elseif csvUrl?contains("ftp://") >
+  <#assign finalUrl="${csvUrl}">
 <#else>
-    <#assign finalUrl="${baseUrl}${pdfUrl}">
+    <#assign finalUrl="${baseUrl}${csvUrl}">
 </#if>
 <body>
 <div id="htmlout"></div>