summaryrefslogtreecommitdiff
path: root/config/routes/user.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-13 16:07:16 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-10-17 20:34:56 +0200
commita5f5c02598d189428c583572d42f38e478669771 (patch)
tree4d6b54f4d983b99fd5014bac3494f79ccc7ef7eb /config/routes/user.rb
parent41de407837dec94925af40c9c556ec9303f4de4e (diff)
downloadgitlab-ce-a5f5c02598d189428c583572d42f38e478669771.tar.gz
Add todo for deprecated user routes and more information about deprecation to changelogdz-rename-user-routes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes/user.rb')
-rw-r--r--config/routes/user.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes/user.rb b/config/routes/user.rb
index ae15b9d02a3..53f9aafc107 100644
--- a/config/routes/user.rb
+++ b/config/routes/user.rb
@@ -34,7 +34,9 @@ scope(path: 'users/:username',
end
# Compatibility with old routing
+# TODO (dzaporozhets): remove in 10.0
get '/u/:username', to: redirect('/%{username}'), constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }
+# TODO (dzaporozhets): remove in 9.0
get '/u/:username/groups', to: redirect('/users/%{username}/groups'), constraints: { username: /[a-zA-Z.0-9_\-]+/ }
get '/u/:username/projects', to: redirect('/users/%{username}/projects'), constraints: { username: /[a-zA-Z.0-9_\-]+/ }
get '/u/:username/snippets', to: redirect('/users/%{username}/snippets'), constraints: { username: /[a-zA-Z.0-9_\-]+/ }