[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:
commit
987ed581f3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue