FEATURE: redirect /groups/:name/members to groups/:name

This commit is contained in:
Arpit Jalan 2016-06-03 21:34:47 +05:30
parent da43e4cf29
commit 92006fd344
2 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export default function() {
}); });
this.resource('group', { path: '/groups/:name' }, function() { this.resource('group', { path: '/groups/:name' }, function() {
this.route('members');
this.route('posts'); this.route('posts');
this.route('topics'); this.route('topics');
this.route('mentions'); this.route('mentions');

View File

@ -0,0 +1,5 @@
export default Discourse.Route.extend({
beforeModel: function() {
this.transitionTo("group.index");
}
});