FIX: Redirect on some URLs to wrong path
This commit is contained in:
parent
cf102be953
commit
d8978cb4a0
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue