diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-13 16:07:16 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-10-17 21:34:56 +0300 |
commit | a5f5c02598d189428c583572d42f38e478669771 (patch) | |
tree | 4d6b54f4d983b99fd5014bac3494f79ccc7ef7eb /config | |
parent | 41de407837dec94925af40c9c556ec9303f4de4e (diff) |
Add todo for deprecated user routes and more information about deprecation to changelog
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/user.rb | 2 |
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_\-]+/ } |