diff options
author | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-02-27 17:11:39 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-02-27 17:11:39 +0000 |
commit | 14d8e2b058487a2c6b6c55115af8a4fefe8f9cb2 (patch) | |
tree | 4d584b91d849670a14f597a3feb21e933c301847 | |
parent | d4aab6528cb80b0f41bdac2240dd9cc32543481d (diff) | |
parent | 7202db072f802a7f003684b300995251dd518376 (diff) | |
download | gitlab-ce-14d8e2b058487a2c6b6c55115af8a4fefe8f9cb2.tar.gz |
Merge branch 'redirect-old-note-attachments-url' into 'master'
Redirect old note attachment path to new uploads path.
See https://gitlab.com/gitlab-org/gitlab-ce/commit/0d884ff2b1beae085050fe6729bd88783891fc71#note_891797
See merge request !1607
-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 # |