Skip to content

Commit

Permalink
Do not redirect Samsung Smart TV 2015 and newer to mobile
Browse files Browse the repository at this point in the history
Bug: T127021
Change-Id: Ib75465aacdd4a67fa65f358f828954fe66a1504a
  • Loading branch information
Baha authored and blblack committed Apr 11, 2016
1 parent faba7dd commit eaeabd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/varnish/text-frontend.inc.vcl.erb
Expand Up @@ -21,6 +21,7 @@ sub mobile_redirect {
&& (req.http.User-Agent ~ "(?i)(mobi|240x240|240x320|320x320|alcatel|android|audiovox|bada|benq|blackberry|cdm-|compal-|docomo|ericsson|hiptop|htc[-_]|huawei|ipod|kddi-|kindle|meego|midp|mitsu|mmp\/|mot-|motor|ngm_|nintendo|opera.m|palm|panasonic|philips|phone|playstation|portalmmm|sagem-|samsung|sanyo|sec-|semc-browser|sendo|sharp|silk|softbank|symbian|teleca|up.browser|vodafone|webos)"
|| req.http.User-Agent ~ "^(?i)(lge?|sie|nec|sgh|pg)-" || req.http.Accept ~ "vnd.wap.wml")
&& req.http.Cookie !~ "(stopMobileRedirect=true|mf_useformat=desktop)"
&& req.http.User-Agent !~ "(SMART-TV.*SamsungBrowser)"
&& (
req.url ~ "^/(wiki|(gan|ike|iu|kk|ku|shi|sr|tg|uz|zh)(-[a-z]+)?)[/\?]"
|| req.url ~ "^/(w/index\.php)?\?title=[^&]*$"
Expand Down

0 comments on commit eaeabd7

Please sign in to comment.