diff --git a/public/templates/config.json b/public/templates/config.json index 636ef7f0b3..a5cd8174a3 100644 --- a/public/templates/config.json +++ b/public/templates/config.json @@ -1,24 +1,20 @@ { "custom_mapping": { - "admin/testing/categories.*": "admin/testing/categories", - "admin/topics.*": "admin/topics", - "admin/categories.*": "admin/categories", - "admin/users.*": "admin/users", - "admin/redis.*": "admin/redis", - "admin/index.*": "admin/index", - "admin/themes.*": "admin/themes", - "admin/plugins.*": "admin/plugins", + "^admin/testing/categories.*": "admin/testing/categories", + "^admin/topics.*": "admin/topics", + "^admin/categories.*": "admin/categories", + "^admin/users.*": "admin/users", + "^admin/redis.*": "admin/redis", + "^admin/index.*": "admin/index", + "^admin/themes.*": "admin/themes", + "^admin/plugins.*": "admin/plugins", "^admin/settings.*": "admin/settings", - "admin/twitter.*": "admin/twitter", - "admin/facebook.*": "admin/facebook", - "admin/logger.*": "admin/logger", - "admin/gplus.*": "admin/gplus", - "admin/motd/?$": "admin/motd", - "admin/groups/?$": "admin/groups", - "install/?$": "install/mail", - "install/mail/?": "install/mail", - "install/social/?": "install/social", - "install/privileges/?": "install/privileges", + "^admin/twitter.*": "admin/twitter", + "^admin/facebook.*": "admin/facebook", + "^admin/logger.*": "admin/logger", + "^admin/gplus.*": "admin/gplus", + "^admin/motd/?$": "admin/motd", + "^admin/groups/?$": "admin/groups", "users/sort-posts": "users", "users/latest": "users", "users/sort-reputation": "users", diff --git a/src/routes/admin.js b/src/routes/admin.js index a26a1be15c..0fa581018c 100644 --- a/src/routes/admin.js +++ b/src/routes/admin.js @@ -30,9 +30,9 @@ var user = require('./../user.js'), (function () { var routes = [ 'categories/active', 'categories/disabled', 'users', 'topics', 'settings', 'themes', - 'twitter', 'facebook', 'gplus', 'redis', 'motd', 'groups','logger', + 'twitter', 'facebook', 'gplus', 'redis', 'motd', 'groups', 'plugins', 'logger', 'users/latest', 'users/sort-posts', 'users/sort-reputation', - 'users/search', 'plugins' + 'users/search' ]; for (var i = 0, ii = routes.length; i < ii; i++) {