From 3cfa37b1e6a1e6b276274cb4ab02f21804904a20 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 6 Feb 2015 19:26:45 -0500 Subject: [PATCH] FIX: Support `adminPlugins` resource even if no plugins use it --- app/assets/javascripts/discourse/routes/discourse_route.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/discourse/routes/discourse_route.js b/app/assets/javascripts/discourse/routes/discourse_route.js index 766292daad5..f6e32c4914b 100644 --- a/app/assets/javascripts/discourse/routes/discourse_route.js +++ b/app/assets/javascripts/discourse/routes/discourse_route.js @@ -131,6 +131,11 @@ Discourse.Route.reopenClass({ delete resources.root; } + // Even if no plugins set it up, we need an `adminPlugins` route + var adminPlugins = 'admin.adminPlugins'; + resources[adminPlugins] = resources[adminPlugins] || [Ember.K]; + paths[adminPlugins] = paths[adminPlugins] || "/plugins"; + var segments = {}, standalone = [];