浏览代码

【修复】修复自定义 404 页面自动跳转路径问题

- 在 404.html 页面中,修改了自动跳转的 URL 路径
- 通过添加 "../../../" 前缀,确保跳转到正确的相对路径
PJ568 1 年之前
父节点
当前提交
f012709cef
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      404.html

+ 1 - 1
404.html

@@ -224,7 +224,7 @@
 
               if (countdown <= 0) {
                 clearInterval(countdownInterval);
-                window.location.href = autoRedirectPackage.location;
+                window.location.href = "../../../" + autoRedirectPackage.location;
               }
             }, 1000);
           }