From 92006fd344ad67ba93a28906a097caf93577a2b0 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 3 Jun 2016 21:34:47 +0530 Subject: [PATCH] FEATURE: redirect /groups/:name/members to groups/:name --- app/assets/javascripts/discourse/routes/app-route-map.js.es6 | 1 + app/assets/javascripts/discourse/routes/group-members.js.es6 | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 app/assets/javascripts/discourse/routes/group-members.js.es6 diff --git a/app/assets/javascripts/discourse/routes/app-route-map.js.es6 b/app/assets/javascripts/discourse/routes/app-route-map.js.es6 index 01b03f07264..2b06baa10ab 100644 --- a/app/assets/javascripts/discourse/routes/app-route-map.js.es6 +++ b/app/assets/javascripts/discourse/routes/app-route-map.js.es6 @@ -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'); diff --git a/app/assets/javascripts/discourse/routes/group-members.js.es6 b/app/assets/javascripts/discourse/routes/group-members.js.es6 new file mode 100644 index 00000000000..8ec71ae22ae --- /dev/null +++ b/app/assets/javascripts/discourse/routes/group-members.js.es6 @@ -0,0 +1,5 @@ +export default Discourse.Route.extend({ + beforeModel: function() { + this.transitionTo("group.index"); + } +});