Commit ff696856 authored by Douwe Maan's avatar Douwe Maan

Add comment about note attachment redirect.

parent 039fd3c5
...@@ -97,6 +97,7 @@ Gitlab::Application.routes.draw do ...@@ -97,6 +97,7 @@ Gitlab::Application.routes.draw do
constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, project_id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ } constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, project_id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ }
end end
# Redirect old note attachments path to new uploads path.
get "files/note/:id/:filename", get "files/note/:id/:filename",
to: redirect("uploads/note/attachment/%{id}/%{filename}"), to: redirect("uploads/note/attachment/%{id}/%{filename}"),
constraints: { filename: /.+/ } constraints: { filename: /.+/ }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment