BigW Consortium Gitlab

Commit 7202db07 by Douwe Maan

Redirect old note attachment path to new uploads path.

parent 47c5a2ab
...@@ -97,6 +97,10 @@ Gitlab::Application.routes.draw do ...@@ -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: /.+/ } constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, project_id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ }
end end
get "files/note/:id/:filename",
to: redirect("uploads/note/attachment/%{id}/%{filename}"),
constraints: { filename: /.+/ }
# #
# Explore area # Explore area
# #
......
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