web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

www.navitime.co.jp - desktop site instead of mobile site

Open karlcow opened this issue 11 years ago • 8 comments

URL: http://www.navitime.co.jp/ Browser / Version: Firefox 39.0 Operating System: Android Problem type: Desktop site instead of mobile site

Steps to Reproduce

  1. Navigate to: http://www.navitime.co.jp/

Expected Behavior: Get the mobile site

Actual Behavior: Receiving the desktop site

country: jp

karlcow avatar Apr 21 '15 05:04 karlcow

They're redirecting to their "touch"/mobile site on the server side. It looks like the minimal token in the UA string needed to get there is AppleWebKit:

🐓 http --print=hH GET http://www.navitime.co.jp User-Agent:"Mozilla/5.0 (Android; Mobile; rv:36.0) AppleWebKit Gecko/36.0 Firefox/36.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.navitime.co.jp
User-Agent: Mozilla/5.0 (Android; Mobile; rv:36.0) AppleWebKit Gecko/36.0 Firefox/36.0

HTTP/1.1 302 Moved Temporarily
Cache-Control: no-cache,no-store
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html;charset=UTF-8
Date: Wed, 22 Apr 2015 22:17:50 GMT
Expires: Wed, 22 Apr 2015 10:17:50 GMT
Location: http://touch.navitime.co.jp/
Pragma: no-cache
Set-Cookie: Apache=63.245.219.54.1429741070277016; path=/; expires=Wed, 29-Apr-15 22:17:50 GMT
Set-Cookie: seq="JvyKR/dvVSfjkNxaWQtcr./eTnn/uUiJaW3XAU9x1Fc==="; Version=1; Domain=.navitime.co.jp; Max-Age=1576800000; Expires=Thu, 09-Apr-2065 22:17:50 GMT; Path=/
Set-Cookie: nug=03; Expires=Thu, 23-Apr-2015 22:17:50 GMT; Path=/
Set-Cookie: JSESSIONID=168F25D7661438000E9894EFDEDD6F69; Path=/pcnavi/; HttpOnly
Set-Cookie: st=sp; Domain=.navitime.co.jp; Expires=Thu, 21-Apr-2016 22:17:50 GMT; Path=/
Vary: Accept-Encoding

🐓 http --print=hH GET http://www.navitime.co.jp User-Agent:"Mozilla/5.0 (Android; Mobile; rv:36.0) Gecko/36.0 Firefox/36.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.navitime.co.jp
User-Agent: Mozilla/5.0 (Android; Mobile; rv:36.0) Gecko/36.0 Firefox/36.0

HTTP/1.1 200 OK
Cache-Control: no-cache,no-store
Content-Encoding: gzip
Content-Length: 27421
Content-Type: text/html;charset=UTF-8
Date: Wed, 22 Apr 2015 22:17:58 GMT
Expires: Wed, 22 Apr 2015 10:17:58 GMT
Pragma: no-cache
Set-Cookie: Apache=63.245.219.54.1429741078175598; path=/; expires=Wed, 29-Apr-15 22:17:58 GMT
Set-Cookie: seq="2I7CVJ2Px44Lngz9fGWQwiDj2hD3fxWYusQbSOi2GLM==="; Version=1; Domain=.navitime.co.jp; Max-Age=1576800000; Expires=Thu, 09-Apr-2065 22:17:58 GMT; Path=/
Set-Cookie: nug=00; Expires=Thu, 23-Apr-2015 22:17:58 GMT; Path=/
Set-Cookie: JSESSIONID=928B42727FAC0CD6CEEC637425D2C169; Path=/pcnavi/; HttpOnly
Vary: Accept-Encoding

We should reach out to them and ask that they recognize the Firefox for Android UA (and the FxOS UA) as mobile devices and similarly redirect to touch.navitime.co.jp.

miketaylr avatar Apr 22 '15 22:04 miketaylr

Mozilla Japan has contact,will contact them. Also, discuss about #945 issue too.

kudodo avatar May 13 '15 09:05 kudodo

I have sent a e-mail to contact people to introduce the developer.

chikoski avatar May 20 '15 05:05 chikoski

Depends on https://webcompat.com/issues/945

chikoski avatar May 22 '15 00:05 chikoski

@karlcow

The developers will change their site settings to navigate Firefox users to their mobile sites.

chikoski avatar Jun 17 '15 04:06 chikoski

Navitime says that they will change their redirection settings in the 2nd week of July, after their confirmation that their mobile site works with Nightly version of Firefox for Android.

chikoski avatar Jun 24 '15 06:06 chikoski

@chikoski That's cool. I didn't test all the site layout (bug #945 ), but it seems to be working pretty well. We need to double check the layout.

So the redirection should not be an issue.

Thanks a lot.

karlcow avatar Jun 25 '15 00:06 karlcow

fixed for the redirection. :fireworks:

karlcow avatar Jul 09 '15 07:07 karlcow