From b3038550373d3e4d7093f204d8e9f9ee0158817a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=83=E5=BD=A9=E6=9E=AB=E5=8F=B6?= <424235748@qq.com> Date: Sun, 23 Mar 2025 07:51:13 +0000 Subject: [PATCH] =?UTF-8?q?update=20app/admin/view/error/500.html.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=EF=BC=8C=E5=BD=93url?= =?UTF-8?q?=E4=B8=AD=E4=B8=8D=E5=8C=85=E5=90=AB.php=EF=BC=8C=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=90=8E=E4=BE=9D=E7=84=B6=E6=98=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 七彩枫叶 <424235748@qq.com> --- app/admin/view/error/500.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/admin/view/error/500.html b/app/admin/view/error/500.html index 18f3b658..88c10fdf 100644 --- a/app/admin/view/error/500.html +++ b/app/admin/view/error/500.html @@ -52,7 +52,11 @@ document.getElementById("back").onclick=function(){ data = JSON.stringify(data); sessionStorage.setItem('swiftadmin_template',data); } - top.window.location.replace(href.substring(0,href.indexOf('.php')+4)); + if(href.indexOf('.php')=='-1'){ + top.window.location.replace(href.match(/^[^:]+:\/\/[^/]+/)[0]+'/admin/'); + }else{ + top.window.location.replace(href.substring(0,href.indexOf('.php')+4)); + } } \ No newline at end of file -- Gitee