[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user