Ver código fonte

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

- 在 404.html 页面中,修改了自动跳转的 URL 路径
- 通过添加 "../../../" 前缀,确保跳转到正确的相对路径
PJ568 1 ano atrás
pai
commit
f012709cef
1 arquivos alterados com 1 adições e 1 exclusões
  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);
           }