diff --git a/app/assets/javascripts/admin/routes/admin_flags_route.js b/app/assets/javascripts/admin/routes/admin_flags_route.js new file mode 100644 index 00000000000..d03a1cbb4b3 --- /dev/null +++ b/app/assets/javascripts/admin/routes/admin_flags_route.js @@ -0,0 +1,14 @@ +/** + Handles routes related to viewing flags. + + @class AdminFlagsRoute + @extends Discourse.Route + @namespace Discourse + @module Discourse +**/ + +Discourse.AdminFlagsRoute = Discourse.Route.extend({ + redirect: function() { + this.transitionTo('adminFlags.active'); + } +}); diff --git a/app/assets/javascripts/admin/routes/admin_users_list_routes.js b/app/assets/javascripts/admin/routes/admin_users_list_routes.js index e31f6f42709..2074756d671 100644 --- a/app/assets/javascripts/admin/routes/admin_users_list_routes.js +++ b/app/assets/javascripts/admin/routes/admin_users_list_routes.js @@ -9,6 +9,9 @@ Discourse.AdminUsersListRoute = Discourse.Route.extend({ renderTemplate: function() { this.render('admin/templates/users_list', {into: 'admin/templates/admin'}); + }, + redirect: function() { + this.transitionTo('adminUsersList.active'); } }); @@ -108,4 +111,4 @@ Discourse.AdminUsersListBannedRoute = Discourse.Route.extend({ setupController: function() { return this.controllerFor('adminUsersList').show('banned'); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/templates/admin.js.handlebars b/app/assets/javascripts/admin/templates/admin.js.handlebars index 462337f8cc5..566a698856f 100644 --- a/app/assets/javascripts/admin/templates/admin.js.handlebars +++ b/app/assets/javascripts/admin/templates/admin.js.handlebars @@ -8,10 +8,10 @@