Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.location.href ERROR #14737

Closed
jngchd opened this issue Jan 25, 2021 · 1 comment
Closed

window.location.href ERROR #14737

jngchd opened this issue Jan 25, 2021 · 1 comment

Comments

@jngchd
Copy link

jngchd commented Jan 25, 2021

Cypress:
equest URL: http://192.168.80.136:8080/ttt/
Request Method: GET
Status Code: 200 OK
Remote Address: 127.0.0.1:52185
Referrer Policy: no-referrer-when-downgrade
cache-control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Encoding: gzip
content-type: text/html;charset=UTF-8
date: Mon, 25 Jan 2021 17:09:41 GMT
server: Apache-Coyote/1.1
Set-Cookie: __cypress.initial=; Domain=192.168.80.136; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT
Transfer-Encoding: chunked
Vary: Accept-Encoding

When Give a breakpoint:

Request URL: http://192.168.80.136:8080/ttt/user!doNotNeedSession_index.do
Request Method: GET
Status Code: 200 OK
Remote Address: 127.0.0.1:52185
Referrer Policy: no-referrer-when-downgrade
cache-control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Encoding: gzip
content-type: text/html;charset=UTF-8
date: Mon, 25 Jan 2021 17:11:32 GMT
server: Apache-Coyote/1.1
Set-Cookie: LAN=zh_CN; Expires=Tue, 25-Jan-2022 17:11:32 GMT
Transfer-Encoding: chunked
Vary: Accept-Encoding

When go on:
Request URL: http://192.168.80.136:8080/ttt/user!doNotNeedSession_index.do
Request Method: GET
Status Code: 302 Found
Remote Address: 127.0.0.1:52185
Referrer Policy: no-referrer-when-downgrade
Connection: keep-alive
Content-Length: 52
Content-Type: text/html; charset=utf-8
Date: Mon, 25 Jan 2021 18:02:34 GMT
Location: /__/
Vary: Accept, Accept-Encoding

Flddler:
GET http://192.168.80.136:8080/ttt/ HTTP/1.1
Accept: text/html, application/xhtml+xml, image/jxr, /
Accept-Language: zh-Hans-CN,zh-Hans;q=0.5
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: 192.168.80.136:8080
Connection: Keep-Alive
Cookie: LAN=zh_CN; JSESSIONID=21E50735FB0975DDEDEB85E5CFAAC85A

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=UTF-8
Content-Length: 121
Date: Mon, 25 Jan 2021 14:50:14 GMT

<script type="text/javascript"> window.location.href = "/ttt/user!doNotNeedSession_index.do"; </script>

Loading...

GET http://192.168.80.136:8080/ttt/user!doNotNeedSession_index.do HTTP/1.1
Accept: text/html, application/xhtml+xml, image/jxr, /
Referer: http://192.168.80.136:8080/ttt/
Accept-Language: zh-Hans-CN,zh-Hans;q=0.5
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Host: 192.168.80.136:8080
Connection: Keep-Alive
Cookie: LAN=zh_CN; JSESSIONID=21E50735FB0975DDEDEB85E5CFAAC85A

<script type="text/javascript"> if(window.self!=window.top){ window.top.location.href = window.location.href; } function chgLan(lan){ window.location.href="/ttt/user!doNotNeedSession_index.do?lan="+lan; } </script> <style type="text/css"> body {padding:0px; margin:0px; font-size: 14px; text-align:center;background:url(images/rbg.png) repeat-x; }

.bg{background:url(images/gray2.png) center 0 no-repeat; width:100%;height:100%; padding-top:150px;}

#logologin-bg{ width:700px; height:570px; margin:auto;}
.logo-china{display:block; background:url(images/login-logo-zh_CN.png) no-repeat center; width:620px; height:72px; margin:auto;}
.logo-english{display:block; background:url(images/login-logo-english.png) no-repeat center; width:620px; height:72px; margin:auto;}

.loginbg{float:left; display:block; background:url(images/loginbg.png) no-repeat center; width:689px; height:480px; margin-top:10px;}

#option-bg{float:right; width:320px; height:32px; margin-top:50px; margin-right:70px;}

#buttons-bg{float:right; width:300px; height:34px; margin-top:120px; margin-right:30px;}
#loginbutton a{width:96px; height:34px; background-color:#0274cc; font-size:16px; margin-left:128px; float:left; color:#FFF; line-height:32px;text-align: center;}
#loginbutton a:hover{width:96px; height:34px; background-color:#138ae6; font-size:17px; margin-left:128px; float:left; color:#FFF; line-height:32px;text-align: center;}

#canclebutton a{width:96px; height:34px; background-color:#999; font-size:16px; margin-left:10px; float:right; color:#FFF; line-height:32px;}
#canclebutton a:hover{width:96px; height:34px; background-color:#b5b2b2; font-size:17px; margin-left:10px; float:right; color:#FFF; line-height:32px;}

a{text-decoration: none;}
input {
line-height:28px;
width:218px;
height:28px;
border:1px solid #b6b6b6;
}
td{
text-align: right;
}
</style>

  
语言: 中文简体
用户名:
密码:





1366*768分辨率。
<script type="text/javascript"> document.getElementById("lan").value="zh_CN"; </script>
@bahmutov
Copy link
Contributor

Please create a reproducible example we can run to show the problem. Please provide screenshots and an explanation of the expected behavior vs what happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants