[MERGE] fix to redirection loop bug when serving mobile client as HTTPS, courtesy...
authorXavier Morel <xmo@openerp.com>
Wed, 15 Feb 2012 11:57:37 +0000 (12:57 +0100)
committerXavier Morel <xmo@openerp.com>
Wed, 15 Feb 2012 11:57:37 +0000 (12:57 +0100)
bzr revid: xmo@openerp.com-20120215115737-a5whcgzk6r03b76p

1  2 
addons/web_mobile/static/src/web_mobile.html

@@@ -50,7 -50,7 +50,7 @@@
      <script type="text/javascript">\r
          var QWeb;\r
          $(function() {\r
-             if(document.URL!="http://"+window.location.host+"/web_mobile/static/src/web_mobile.html"){\r
 -            if(window.location.pathname!="/web_mobile/static/src/web_mobile.html"){\r
++            if (window.location.pathname != "/web_mobile/static/src/web_mobile.html") {\r
                  window.location.replace('/mobile');\r
              }\r
              var oe = openerp.init();\r