Closed Bug 933653 Opened 6 years ago Closed 5 years ago

jagran.com isn't redirecting to mobile site on Firefox OS

Categories

(Web Compatibility :: Mobile, defect)

Other
Gonk (Firefox OS)
defect
Not set

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: haseeb, Assigned: haseeb)

References

()

Details

(Whiteboard: [mobile-compat-form][country-in][clientsniff][sitewait])

Site: http://www.jagran.com/
jagran.com isn't redirecting to mobile site on Firefox OS

:: Steps To Reproduce

1.Open Firefox browser
2.Enter jagran.com


:: Expected Result

http://m.jagran.com/lite/ mobile site

:: Actual Result

http://www.jagran.com/ desktop site

:: Additional Information

Software Version: Firefox OS simulator 4.0
Reporter's User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36
There's a script in the <head>

<script type="text/javascript">
var mobile = (/iphone|ipod|android|blackberry|nokia|symbian|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if(mobile){
 document.location = "http://m.jagran.com";
}

We should contact them and ask them to add "|mobi|" to the regex, like so:

var mobile = (/mobi|iphone|ipod|android|blackberry|nokia|symbian|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] → [mobile-compat-form][country-in][clientsniff][contactready]
Assignee: nobody → Abdulraufhaseeb
Status: NEW → ASSIGNED
Whiteboard: [mobile-compat-form][country-in][clientsniff][contactready] → [mobile-compat-form][country-in][clientsniff][sitewait]
This is Resolved. The site is responsive now.
http://www.jagran.com/
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.