Commit ec2b20b4a1c49eecdf25dcc39f08bb53b729932c

Fix initial page to load
  • Diff rendering mode:
  • inline
  • side by side

mouchak/static/js/mouchak.js

174 var app_router = new AppRouter();174 var app_router = new AppRouter();
175 Backbone.history.start();175 Backbone.history.start();
176176
177 if(!location.hash) {
178 var startpage = M.pages.models[0].get('name');
177 if(!window.location.hash) {
178 var startpage = M.pages.site_content.menu.menuOrder[0];
179 app_router.navigate(startpage, {trigger: true});179 app_router.navigate(startpage, {trigger: true});
180 }180 }
181181