wangchuanjin 4 lat temu
rodzic
commit
b66aed61f6
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/web/staticres/js/common.js

+ 4 - 4
src/web/staticres/js/common.js

@@ -158,9 +158,9 @@ function redirect(zbadd,link,sid,sds){
 		}
 	}
 	if(sds){
-		window.location.href=zbadd+"/article/content/"+sid+".html?keywords="+encodeURIComponent(sds);
+		window.location.href="/article/content/"+sid+".html?keywords="+encodeURIComponent(sds);
 	}else{
-		window.location.href=zbadd+"/article/content/"+sid+".html";
+		window.location.href="/article/content/"+sid+".html";
 	}
 }
 function newredirect(zbadd,link,sid,sds,index){
@@ -176,9 +176,9 @@ function newredirect(zbadd,link,sid,sds,index){
 	}
 	if(sds){
 		pt = "&"+pt
-		window.location.href=zbadd+"/article/content/"+sid+".html?keywords="+encodeURIComponent(sds)+pt;
+		window.location.href="/article/content/"+sid+".html?keywords="+encodeURIComponent(sds)+pt;
 	}else{
-		window.location.href=zbadd+"/article/content/"+sid+".html"+pt;
+		window.location.href="/article/content/"+sid+".html"+pt;
 	}
 }
 function pcredirect(link,sid){