[FIX] When using apache https as proxy for openerp accesing /mobile url leads to redirection loop. This change, 1 line solves the problem.

bzr revid: mikel@pcl2-20120214220615-j28302zaeoewdan6
This commit is contained in:
mikel
2012-02-14 23:06:15 +01:00
parent 18cd75716f
commit 112070a58f
+4 -1
View File
@@ -50,7 +50,10 @@
<script type="text/javascript">
var QWeb;
$(function() {
if(document.URL!="http://"+window.location.host+"/web_mobile/static/src/web_mobile.html"){
if(
document.URL!="http://"+window.location.host+"/web_mobile/static/src/web_mobile.html" &&
document.URL!="https://"+window.location.host+"/web_mobile/static/src/web_mobile.html"
){
window.location.replace('/mobile');
}
var oe = openerp.init();