From ec2b20b4a1c49eecdf25dcc39f08bb53b729932c Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Tue, 3 Sep 2013 11:10:01 +0530 Subject: [PATCH] Fix initial page to load --- mouchak/static/js/mouchak.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mouchak/static/js/mouchak.js b/mouchak/static/js/mouchak.js index 1946497..6888da5 100644 --- a/mouchak/static/js/mouchak.js +++ b/mouchak/static/js/mouchak.js @@ -174,8 +174,8 @@ M.init = function() { var app_router = new AppRouter(); Backbone.history.start(); - if(!location.hash) { - var startpage = M.pages.models[0].get('name'); + if(!window.location.hash) { + var startpage = M.pages.site_content.menu.menuOrder[0]; app_router.navigate(startpage, {trigger: true}); } -- 1.7.10.4