Suggested fix
[odoo/odoo.git] / addons / web_mobile / static / src / web_mobile.html
index b0e7807..32c340a 100755 (executable)
@@ -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
                 window.location.replace('/mobile');\r
             }\r
             var oe = openerp.init();\r