[FIX] website: mobile preview should keep the current search; some pages depends...
authorThibault Delavallée <tde@openerp.com>
Wed, 18 Jun 2014 09:26:55 +0000 (11:26 +0200)
committerThibault Delavallée <tde@openerp.com>
Wed, 18 Jun 2014 09:26:55 +0000 (11:26 +0200)
addons/website/static/src/js/website.mobile.js

index 98d9bdc..1dbe8a1 100644 (file)
@@ -20,7 +20,7 @@
             if (!window.location.origin) { // fix for ie9
                 window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
             }
-            document.getElementById("mobile-viewport").src = window.location.origin + window.location.pathname + "#mobile-preview";
+            document.getElementById("mobile-viewport").src = window.location.origin + window.location.pathname + window.location.search + "#mobile-preview";
             this.$el.modal();
         },
         destroy: function () {