Commit 14d8e2b0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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
parents d4aab652 7202db07
......@@ -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
#
......
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