diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-14 12:20:16 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-15 09:45:58 +0200 |
commit | a434ffd3b3a895bd75daed76000def23f4002f5a (patch) | |
tree | 9b94c5ec8da08a570a172ca6d3ba9d92619cd9b1 /app/controllers/profiles | |
parent | 595aba54afce01a7903990f6630ae03de1c4d61e (diff) | |
download | gitlab-ce-a434ffd3b3a895bd75daed76000def23f4002f5a.tar.gz |
Make /profile/keys/new redirects to /profile/keys for back-compat
Report: https://github.com/gitlabhq/gitlabhq/issues/10138
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/keys_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/profiles/keys_controller.rb b/app/controllers/profiles/keys_controller.rb index b88c080352b..a12549d6bcb 100644 --- a/app/controllers/profiles/keys_controller.rb +++ b/app/controllers/profiles/keys_controller.rb @@ -10,6 +10,11 @@ class Profiles::KeysController < Profiles::ApplicationController @key = current_user.keys.find(params[:id]) end + # Back-compat: We need to support this URL since git-annex webapp points to it + def new + redirect_to profile_keys_path + end + def create @key = current_user.keys.new(key_params) |