FIX: Redirect on some URLs to wrong path

This commit is contained in:
Robin Ward 2013-07-23 12:15:44 -04:00
parent cf102be953
commit d8978cb4a0
1 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,18 @@
Discourse.AdminUsersListRoute = Discourse.Route.extend({ Discourse.AdminUsersListRoute = Discourse.Route.extend({
renderTemplate: function() { renderTemplate: function() {
this.render('admin/templates/users_list', {into: 'admin/templates/admin'}); this.render('admin/templates/users_list', {into: 'admin/templates/admin'});
}, }
});
/**
Index should just redirect to active
@class AdminUsersIndexRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminUsersListIndexRoute = Discourse.Route.extend({
redirect: function() { redirect: function() {
this.transitionTo('adminUsersList.active'); this.transitionTo('adminUsersList.active');
} }