From e4bcc90d95fa3b78544cb9ddd6019a5f914c1628 Mon Sep 17 00:00:00 2001 From: Michael Kozono Date: Thu, 4 May 2017 11:12:19 -0700 Subject: =?UTF-8?q?Add=20=E2=80=9Cproject=20moved=E2=80=9D=20flash=20messa?= =?UTF-8?q?ge=20on=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/concerns/routable_actions.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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 -- cgit v1.2.3