webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
737 stars 63 forks source link

www.chery.cn - desktop site instead of mobile site #9617

Open webcompat-bot opened 7 years ago

webcompat-bot commented 7 years ago

URL: http://www.chery.cn/

Browser / Version: Firefox Mobile 57.0 Operating System: Android 5.1 Tested Another Browser: Yes

Problem type: Desktop site instead of mobile site Description: The page information can not be opened normally. Steps to Reproduce:

Screenshot Description

From webcompat.com with ❤️

karlcow commented 6 years ago
CheryCommonCls().getDevice().versions

Object { trident: false, presto: false, webKit: false, gecko: true, mobile: false, ios: false, android: true, iPhone: false, iPad: false, webApp: true } 

There is useragent detection going on.

$(function () {

    //return false;
    var objx = CheryCommonCls();
    if (objx.getDevice().versions["iPhone"] || objx.getDevice().versions["mobile"]) {
        if (window.location.pathname.indexOf("/m/") >-1) {
            return;
        }
        else {
            window.location = "/m" + window.location.pathname+location.search;
        }
    }
    else {
        if (window.location.pathname.indexOf("/m/") > -1) {
            window.location = "/"+  window.location.pathname.replace("/m/", "") + window.location.search;
        }
        else {
            return;
        }
    }
});

The mobile version is at http://www.chery.cn/m/home

softvision-sergiulogigan commented 4 years ago

This is still happening.

Tested with: Browser / Version: Firefox Nightly Mobile 68.3a1 (2019-10-29), Firefox Preview Nightly 191029 (🦎: 71.0a1-20191025095546) Operating System: Samsung Galaxy S8 (Android 9) - 1440 x 2960 pixels, 18.5:9 ratio (~570 ppi density)

image

softvision-oana-arbuzov commented 2 years ago

This still occurs. image

Tested with: Browser / Version: Firefox Nightly 105.0a1 (🦎 105.0a1-20220727155540) Operating System: Google Pixel 5 (Android 12) - 1080 x 2340 pixels, 19.5:9 ratio (~432 ppi density), Samsung Galaxy S8 (Android 9) - 1440 x 2960 pixels, 18.5:9 ratio (~570 ppi density)

[inv_30/2022]