浏览代码

wip:处理数据导出未登陆链接打开404

wkyuer 7 月之前
父节点
当前提交
dcb41acc51
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/web/templates/pc/reloadTo.html

+ 1 - 1
src/web/templates/pc/reloadTo.html

@@ -12,7 +12,7 @@
     var targetPattern = /\/content\/(.+?)\./; // 匹配目标字符串
     var match = transfer.match(targetPattern);
     if (match && match[1]) {
-      window.location.href = transfer.replace(/\/content\/(.+?)\./, "/content/" + encodeURIComponent(match[1]) + ".");
+      window.location.href = transfer.replace(/\/content\/(.+?)\./, "/content/" + encodeURIComponent(encodeURIComponent(match[1])) + ".");
       return
     }
     window.location.href = {{.T.transfer}};