Commit bb7df766 authored by GitLab's avatar GitLab

Add short path route for groups.

parent 0f31acd0
...@@ -327,5 +327,7 @@ Gitlab::Application.routes.draw do ...@@ -327,5 +327,7 @@ Gitlab::Application.routes.draw do
end end
end end
get ':id' => "groups#show", constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/}
root to: "dashboard#show" root to: "dashboard#show"
end end
...@@ -238,3 +238,15 @@ end ...@@ -238,3 +238,15 @@ end
describe "Authentication", "routing" do describe "Authentication", "routing" do
# pending # pending
end end
describe "Groups", "routing" do
it "to #show" do
get("/groups/1").should route_to('groups#show', id: '1')
end
it "redirect" do
# get("/groups/1").should redirect_to("/groups/1")
get("/1").should route_to('groups#show', id: '1')
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment