diff --git a/config/routes.rb b/config/routes.rb
index 35053bdb20fcb41f0032d8899fd45e09448a109b..e152b27a262ee760fcee718946f23b1b610c852c 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
   #