careerjunction.co.za sends desktop site to Firefox OS

RESOLVED FIXED

Status

Tech Evangelism
Mobile
RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: hallvors, Assigned: adamopenweb)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [serversniff] [country-za] [sitewait], URL)

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Compare the responses to the following HTTP requests:

GET / HTTP/1.1
Host: www.careerjunction.co.za
User-Agent: Mozilla/5.0 (Mobile; rv:23.0) Gecko/23.0 Firefox/23.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

HTTP/1.1 200 OK
Date: Fri, 17 Jan 2014 13:37:09 GMT
Server: Apache/2.2.22 (Ubuntu)
Set-cookie: r4l=cde6ba666045c5394dce6bf4c7c2c5e8cb7489be824ff5fc2ceb0299be85909302142da1; Path=/
X-Mod-Pagespeed: 1.2.24.1-2581
Vary: Accept-Encoding,User-Agent
X-Backend-Server: l-app68 D=4163269
Cache-Control: max-age=0, no-cache
Content-Length: 50304
Content-Type: text/html;charset=utf-8
Set-Cookie: SERVERID=l-app68; path=/
Cache-control: private

------------------------------------------------------------------
GET / HTTP/1.1
Host: www.careerjunction.co.za
User-Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

HTTP/1.1 302 Found
Date: Fri, 17 Jan 2014 13:37:24 GMT
Server: Apache/2.2.22 (Ubuntu)
Set-cookie: r4l=05cb5ec69ccc38933641e16af0ff3424e1cf06084441f17b1b72089e37f4bc7eb0aa6768; Path=/
location: http://m.careerjunction.co.za/
Vary: Accept-Encoding,User-Agent
X-Backend-Server: l-app68 D=46014
Cache-Control: public
Content-Length: 243
Content-Type: text/html; charset=UTF-8
Set-Cookie: SERVERID=l-app68; path=/

------------------------------------------------------------------
(Reporter)

Comment 1

4 years ago
Created attachment 8362098 [details]
145.png
(Assignee)

Comment 2

4 years ago
contactemail
Emailing site at info@careerjunction.co.za.
Assignee: nobody → astevenson
Status: NEW → ASSIGNED
Whiteboard: [serversniff] [country-za] [contactready] → [serversniff] [country-za] [sitewait]

Comment 3

3 years ago
contacttwitter
Trying a new contact.
http://twitter.com/MozWebCompat/status/570059903538065408

Comment 4

3 years ago
We had a positive contact through email. 
Then the message was forwarded to another person.
Let's hope, it will be solved.

Comment 5

3 years ago
We use WURFL to determine whether to redirect or not.

Here is some pseudo PHP (Yii) code:
$device = Yii::app()->wurfl->manager->getDeviceForUserAgent($user_agent);
$wurfl_is_wireless_device = $device->getCapability("is_wireless_device");
$is_tablet = $device->getCapability("is_tablet");
$m_browser = $device->getCapability("mobile_browser");
if(empty($m_browser)) {
    $wurfl_is_wireless_device = false;
}
if($wurfl_is_wireless_device && (!$is_tablet)) {
    //redirect
}

Comment 6

3 years ago
hello andre,

Recent versions of WURFL take into account Firefox OS.
"Mozilla/5.0 (Mobile; rv:23.0) Gecko/23.0 Firefox/23.0"

Try http://tools.scientiamobile.com/?user-agent-string=Mozilla%2F5.0+%28Mobile%3B+rv%3A35.0%29+Gecko%2F35.0+Firefox%2F35.0

    is_tablet: false
    pointing_method: touchscreen
    resolution_width: 320
    resolution_height: 480

So we should get the redirection except if you are using an old version of WURFL.
Flags: needinfo?(andre)

Comment 7

3 years ago
We were using a 4 year old version. I've upgraded and it now redirects to the mobile site.

Thank you for bringing the issue to our attention.
Flags: needinfo?(andre)

Comment 8

3 years ago
Wonderful André!
Let me close this and big thanks to CareerJunction employees.
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.