Suggested fix
authormikel <mikel@pcl2>
Wed, 15 Feb 2012 09:46:14 +0000 (10:46 +0100)
committermikel <mikel@pcl2>
Wed, 15 Feb 2012 09:46:14 +0000 (10:46 +0100)
bzr revid: mikel@pcl2-20120215094614-uzbqxiuemq6iu3f9

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

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