summaryrefslogtreecommitdiff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-04 11:12:19 -0700
committerMichael Kozono <mkozono@gmail.com>2017-05-05 12:12:50 -0700
commite4bcc90d95fa3b78544cb9ddd6019a5f914c1628 (patch)
tree68bf9769e348e45ff786a083e336f32409181d35 /app/controllers/concerns
parent0c866f4a575d8127efbf3eafda83d8ccfbd97817 (diff)
downloadgitlab-ce-e4bcc90d95fa3b78544cb9ddd6019a5f914c1628.tar.gz
Add “project moved” flash message on redirect
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/routable_actions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/concerns/routable_actions.rb b/app/controllers/concerns/routable_actions.rb
index 6f16377a156..1714bc25e52 100644
--- a/app/controllers/concerns/routable_actions.rb
+++ b/app/controllers/concerns/routable_actions.rb
@@ -5,6 +5,7 @@ module RoutableActions
return unless request.get?
if routable.full_path != requested_path
+ flash[:notice] = 'This project has moved to this location. Please update your links and bookmarks.'
redirect_to request.original_url.sub(requested_path, routable.full_path)
end
end