浏览代码

HUE-6077 [frontend] Disable popstate listening on page.js to co-exist with Routie

Enrico Berti 8 年之前
父节点
当前提交
f9b1b60
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      desktop/core/src/desktop/templates/hue.mako

+ 3 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -854,7 +854,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
             console.error('Route not found', ctx);
             console.error('Route not found', ctx);
             self.loadApp('404');
             self.loadApp('404');
           });
           });
-          page();
+          page({
+            popstate: false
+          });
         });
         });
 
 
         huePubSub.subscribe('open.link', function (href) {
         huePubSub.subscribe('open.link', function (href) {