Skip to content
Snippets Groups Projects
Commit b614b3da authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix groups rout

parent 1afcfc3a
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,12 @@ const getRoutes = (store, IsAdmin) => (
<Route path="people" title={t`People`} component={AdminPeopleApp}>
<IndexRoute component={PeopleListingApp} />
{/*NOTE: this must come before the other routes otherwise it will be masked by them*/}
<Route path="groups" title={t`Groups`}>
<IndexRoute component={GroupsListingApp} />
<Route path=":groupId" component={GroupDetailApp} />
</Route>
<Route path="" component={PeopleListingApp}>
<ModalRoute path="new" modal={NewUserModal} />
</Route>
......@@ -91,11 +97,6 @@ const getRoutes = (store, IsAdmin) => (
<ModalRoute path="deactivate" modal={UserActivationModal} />
<ModalRoute path="reactivate" modal={UserActivationModal} />
</Route>
<Route path="groups" title={t`Groups`}>
<IndexRoute component={GroupsListingApp} />
<Route path=":groupId" component={GroupDetailApp} />
</Route>
</Route>
{/* Troubleshooting */}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment