[MERGE] fix to redirection loop bug when serving mobile client as HTTPS, courtesy of Mikel Martin

bzr revid: xmo@openerp.com-20120215115737-a5whcgzk6r03b76p
This commit is contained in:
Xavier Morel
2012-02-15 12:57:37 +01:00
+1 -1
View File
@@ -50,7 +50,7 @@
<script type="text/javascript">
var QWeb;
$(function() {
if(document.URL!="http://"+window.location.host+"/web_mobile/static/src/web_mobile.html"){
if (window.location.pathname != "/web_mobile/static/src/web_mobile.html") {
window.location.replace('/mobile');
}
var oe = openerp.init();