diff --git a/app/assets/javascripts/discourse/routes/application_routes.js b/app/assets/javascripts/discourse/routes/application_routes.js index 9d8e487be..c7b2d6c5e 100644 --- a/app/assets/javascripts/discourse/routes/application_routes.js +++ b/app/assets/javascripts/discourse/routes/application_routes.js @@ -30,7 +30,7 @@ Discourse.Route.buildRoutes(function() { }); // the homepage is the first item of the 'top_menu' site setting - var homepage = PreloadStore.get('siteSettings').top_menu.split("|")[0]; + var homepage = PreloadStore.get('siteSettings').top_menu.split("|")[0].split(",")[0]; this.route(homepage, { path: '/' }); this.route('categories', { path: '/categories' });