summaryrefslogtreecommitdiff
path: root/config/routes/snippets.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-06-25 18:37:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-06-26 09:18:13 +0300
commit9be95e2b2f72ca481848823d3856b4518fd9743a (patch)
tree86a2c8d6d6086bef124f31fd64a049e2486e9b8d /config/routes/snippets.rb
parentf904971e5fefff92b0cc467a4dc4483ba68b6e6c (diff)
downloadgitlab-ce-9be95e2b2f72ca481848823d3856b4518fd9743a.tar.gz
Remove deprecated /u/:username routesdz-remove-deprecated-user-routes
Also release `u` from TOP_LEVEL_ROUTES Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes/snippets.rb')
-rw-r--r--config/routes/snippets.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/snippets.rb b/config/routes/snippets.rb
index 81bc890d86b..ba6da3ac57e 100644
--- a/config/routes/snippets.rb
+++ b/config/routes/snippets.rb
@@ -17,5 +17,5 @@ resources :snippets, concerns: :awardable do
end
end
-get '/s/:username', to: redirect('u/%{username}/snippets'),
+get '/s/:username', to: redirect('users/%{username}/snippets'),
constraints: { username: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }