summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-12 12:47:47 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-04 22:49:41 +0200
commit960559aa6889a0b5ac1d46b84b7f7977a57d50ca (patch)
tree81e8a050252d2fa48a195d2d978a86ccadb89d0d /config
parent5998157618eafb69f6980f41639a7b485fe2467f (diff)
downloadgitlab-ce-960559aa6889a0b5ac1d46b84b7f7977a57d50ca.tar.gz
Don't use canonical path for group children
Diffstat (limited to 'config')
-rw-r--r--config/routes/group.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 0f0ece61a38..514f756a45f 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -41,9 +41,6 @@ scope(path: 'groups/*id',
get :merge_requests, as: :merge_requests_group
get :projects, as: :projects_group
get :activity, as: :activity_group
- scope(path: '-') do
- get :children, as: :group_children
- end
get '/', action: :show, as: :group_canonical
end
@@ -56,5 +53,9 @@ constraints(GroupUrlConstrainer.new) do
patch '/', action: :update
put '/', action: :update
delete '/', action: :destroy
+
+ scope(path: '-') do
+ get :children
+ end
end
end