diff --git a/app/admin/view/error/500.html b/app/admin/view/error/500.html index 18f3b6582290e2a95ed78e62eb284cd61564c7b2..88c10fdfed59967d3d87da582b6b7d542abdc060 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