Closed Bug 965694 Opened 10 years ago Closed 9 years ago

invest-in-france.org sends desktop site to Firefox OS

Categories

(Web Compatibility :: Site Reports, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: karlcow, Assigned: karlcow, Mentored)

References

()

Details

(Whiteboard: [clientsniff] [country-fr] [sitewait])

User agent sniffing not taking into account some platforms, specifically /mobi/i


    var ref = document.referrer;

    var mobile = function () {
        return {
            detect: function () {
                var uagent = navigator.userAgent.toLowerCase();
                var list = this.mobiles;
                var ismobile = false;
                for (var d = 0; d < list.length; d += 1) {
                    if (uagent.indexOf(list[d]) != -1) {
                        ismobile = true;
                    }
                }
                return ismobile;
            },
            mobiles: [
            "midp", "240x320", "blackberry", "netfront", "nokia", "panasonic",
            "portalmmm", "sharp", "sie-", "sonyericsson", "symbian",
            "windows ce", "benq", "mda", "mot-", "opera mini",
            "philips", "pocket pc", "sagem", "samsung", "sda",
            "sgh-", "vodafone", "xda", "palm", "iphone",
            "ipod", "android"
        ]
        };
    } ();

    if (mobile.detect()) {
        if (ref.match(/^http?:\/\/([^\/]+\.)?invest-in-france\.org(\/|$)/i)) {
            //alert("Came from invest");
        } else
            window.location = "http://m.invest-in-france.org/"
    }
Changing the URL, as the same exact code and issue exist on the destination site.

They have a contact us page. 
http://www.invest-in-france.org/us/contact-us.html
As it is a national organization, I do not think the Web site is made by them. Let's see
http://www.invest-in-france.org/us/credits-and-legal-notices.html

- Web Editor: Hélène Bessy
- Programming: Expertime
- Graphic Design: Mode d'emploi

So we need to contact Hélène Bessy and/or Expertime
http://www.linkedin.com/pub/h%C3%A9l%C3%A8ne-bessy/20/215/a55/en

Expertime has a twitter account
https://twitter.com/Expertime

Let's try twitter first.
http://twitter.com/MozWebCompat/status/481612548530122752
Assignee: nobody → kdubost
Mentor: kdubost
Status: NEW → ASSIGNED
Summary: afii.fr sends desktop site to Firefox OS → invest-in-france.org sends desktop site to Firefox OS
Whiteboard: [clientsniff] [country-fr] [contactready] → [clientsniff] [country-fr] [sitewait]
We didn't get an answer on their twitter account. 
The site still exhibit the issue.

The accounts are both related to this site.
https://twitter.com/UbiFrance
https://twitter.com/InvestinFrance

Let's try.
http://twitter.com/MozWebCompat/status/559558342343806976
The domain invest-in-france doesn't exist anymore. 
There's a redirection to http://sayouitofrance-innovation.com/ which has its own set of issues. 
Someone could open a bug on https://webcompat.com/

closing as INVALID
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.