Open MDTsai opened 8 years ago
The following URLs under zol.com.cn have the same problem: http://www.zol.com.cn/ http://detail.zol.com.cn/ http://xiazai.zol.com.cn/ http://mobile.zol.com.cn/ http://desk.zol.com.cn/ http://news.zol.com.cn/ http://nb.zol.com.cn/
These don't have such problem: http://bbs.zol.com.cn -> http://m.zol.com.cn/bbs/# http://ask.zol.com.cn -> http://wap.zol.com.cn/ask/
Eric said this is a super important site, top 50 in China -- candidate for UA override if we can't get traction with outreach after a week or two (to give them a chance to fix).
using httpie,
miket at omg-3 in ~/tmp
🐓 http --print=hH GET http://www.zol.com.cn/ User-Agent:"$FFA"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.zol.com.cn
User-Agent: Mozilla/5.0 (Android 5.0.2; Mobile; rv:48.0) Gecko/48.0 Firefox/48.0
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=120
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 70985
Content-Type: text/html; charset=gbk
Date: Wed, 31 Aug 2016 13:23:05 GMT
Expires: Wed, 31 Aug 2016 13:24:57 GMT
Server: ngx_openresty/1.2.8.6
Vary: Accept-Encoding
X-Ser: BC163_dx-guangdong-jiangmen-2-cache-1
miket at omg-3 in ~/tmp
🐓 http --print=hH GET http://www.zol.com.cn/ User-Agent:"$CHRM"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.zol.com.cn
User-Agent: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/47.0.2526.49 Mobile Safari/535.19
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=120
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 70985
Content-Type: text/html; charset=gbk
Date: Wed, 31 Aug 2016 13:23:13 GMT
Expires: Wed, 31 Aug 2016 13:24:57 GMT
Server: ngx_openresty/1.2.8.6
Vary: Accept-Encoding
X-Ser: BC11_dx-guangdong-zhongshan-3-cache-1
It seems like the redirect is on the client-side. Looking...
Interesting meta elements here, don't think I've seen that before.
<meta http-equiv="mobile-agent" content="format=xhtml; url=http://m.zol.com.cn/vga/?j=simple&via=index">
<meta http-equiv="mobile-agent" content="format=html5; url=http://m.zol.com.cn/vga/?via=index">
Anyways, the JS is here inline:
<script type="text/javascript">
if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){
if(window.location.href.indexOf("?via=")<0){
try{
if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
window.location.href="http://m.zol.com.cn/vga/?via=index";
}else if(/iPad/i.test(navigator.userAgent)){
}else{
window.location.href="http://m.zol.com.cn/vga/?j=simple&via=index"
}
}catch(e){}
}
}
</script>
So, if you're a mobile Safari, OR you have one of a number of device IDs in the UA string, send to mobile.
@MDTsai can we try outreach here? If we don't have luck, a simple UA override would be to simply put in a UA token like LG
or SAMSUNG
for this site.
Contact zol.com.cn today
@MDTsai did you contact them? If yes please move it to sitewait. Thanks.
Still no response from zol.com. Move to gofaster addon?
The issue is still reproducible on my side.
Tested with: Browser / Version: Firefox Nightly 68.0a1 (2019-08-20), Fenix 1.3.0 (Build #12321503) 📦: 8.0.0, 78354bc12 🦎: 69.0-20190812090043 Operating System: LG G5 (Android 8.0.0) - 1440 x 2560 pixels (~554 ppi pixel density), Samsung Galaxy S7 Edge (Android 8.0.0) - Resolution 1440 x 2560 pixels (~534 ppi pixel density)
URL: http://vga.zol.com.cn/ Browser / Version: Firefox Mobile 51.0 Operating System: Android 5.0.2 Problem type: Desktop site instead of mobile site
Steps to Reproduce 1) Navigate to: http://vga.zol.com.cn/
Expected Behavior: Redirect to mobile site http://m.zol.com.cn/vga/?via=index
Actual Behavior: Show desktop site http://vga.zol.com.cn
Chrome and UCMobile browser works fine. After change UA to chrome mobile, Firefox can receive mobile site.
From webcompat.com with ❤️