mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 01:28:08 +08:00
FIX: Redirect on some URLs to wrong path
This commit is contained in:
@ -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');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user