diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-27 11:26:47 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-27 11:26:47 +0100 |
commit | 7202db072f802a7f003684b300995251dd518376 (patch) | |
tree | 86687866f7cfbb78e975ca5a8e67ab362d650b81 /config | |
parent | 47c5a2ab22b0fbc9c20b996ec24c27608e99bc43 (diff) | |
download | gitlab-ce-7202db072f802a7f003684b300995251dd518376.tar.gz |
Redirect old note attachment path to new uploads path.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 35053bdb20f..e152b27a262 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -97,6 +97,10 @@ Gitlab::Application.routes.draw do constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, project_id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ } end + get "files/note/:id/:filename", + to: redirect("uploads/note/attachment/%{id}/%{filename}"), + constraints: { filename: /.+/ } + # # Explore area # |