浏览代码

fix redirect bug if logged in

causefx 7 年之前
父节点
当前提交
b62736646e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/functions.js

+ 1 - 1
js/functions.js

@@ -3129,7 +3129,7 @@ function errorPage(error=null,uri=null){
 	if($.urlParam('error') !== null){
 		local('set','error',$.urlParam('error'));
 	}
-    if($.urlParam('return') !== null){
+    if($.urlParam('return') !== null && activeInfo.user.loggedin !== true){
         local('set','uri',$.urlParam('return'));
     }
 	if ( window.location !== window.parent.location ) {