mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:17:30 +08:00
FEATURE: redirect /groups/:name/members to groups/:name
This commit is contained in:
parent
da43e4cf29
commit
92006fd344
|
@ -49,6 +49,7 @@ export default function() {
|
|||
});
|
||||
|
||||
this.resource('group', { path: '/groups/:name' }, function() {
|
||||
this.route('members');
|
||||
this.route('posts');
|
||||
this.route('topics');
|
||||
this.route('mentions');
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
export default Discourse.Route.extend({
|
||||
beforeModel: function() {
|
||||
this.transitionTo("group.index");
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user