From ff696856079c984332de167219f2768415e6730f Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Fri, 27 Feb 2015 11:26:47 +0100 Subject: [PATCH] Add comment about note attachment redirect. --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index e152b27a262..63299176932 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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: /.+/ } end + # Redirect old note attachments path to new uploads path. get "files/note/:id/:filename", to: redirect("uploads/note/attachment/%{id}/%{filename}"), constraints: { filename: /.+/ } -- GitLab