diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-07 16:06:55 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-07 16:06:55 +0400 |
commit | 3dc0bce9474ac52046f5c3efb2532af6334a7aae (patch) | |
tree | 4a3135432072ef8d8d7ed6112d53129ed6614280 /config | |
parent | ab094e67eed54f5c29a33d2114cc91908e543972 (diff) |
Add users to /:id route
So now when you type site/:username it redirects you to users page.
And if you type site/:groupname it redirects you to group page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 7c2ab6bd1dd..67ff66757e6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -315,7 +315,7 @@ Gitlab::Application.routes.draw do end end - get ':id' => "groups#show", constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/} + get ':id' => "namespaces#show", constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/} root to: "dashboard#show" end |