Closed Bug 993866 Opened 10 years ago Closed 9 years ago

financialexpress.com sends desktop site to Firefox OS

Categories

(Web Compatibility :: Site Reports, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: haseeb, Unassigned, Mentored)

References

()

Details

(Whiteboard: [country-in][clientsniff][contactready])

      No description provided.
The site intends to send smartphones to a separate page, but does a limited name-based detection and fails to recognise Firefox OS devices as smartphones. Here's the script they are using:

<script type="text/javascript">// <![CDATA[
    var mobile = (/Series60|Nokia|SymbianOS|iphone|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
    if (mobile) {
        document.location = "http://m.financialexpress.com";
    }
// ]]></script>
Whiteboard: [country-in2] → [country-in][clientsniff][mentor=hsteen][contactready]
Mentor: hsteen
Whiteboard: [country-in][clientsniff][mentor=hsteen][contactready] → [country-in][clientsniff][contactready]
fixed by responsive design.
tested on ios, firefox android, firefox OS.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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.