diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-05-04 21:12:19 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-05-05 22:12:50 +0300 |
commit | e4bcc90d95fa3b78544cb9ddd6019a5f914c1628 (patch) | |
tree | 68bf9769e348e45ff786a083e336f32409181d35 /app | |
parent | 0c866f4a575d8127efbf3eafda83d8ccfbd97817 (diff) |
Add “project moved” flash message on redirect
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/concerns/routable_actions.rb | 1 |
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 |