Commit 893bd8ac authored by Kevin Boyd's avatar Kevin Boyd

Incorporating Dmitriy's referrer-based routing suggestion

parent 75b0ef82
...@@ -105,7 +105,12 @@ class ProjectsController < ApplicationController ...@@ -105,7 +105,12 @@ class ProjectsController < ApplicationController
respond_to do |format| respond_to do |format|
format.html do format.html do
flash[:alert] = "Project deleted." flash[:alert] = "Project deleted."
redirect_to admin_projects_path
if request.referer.include?("/admin")
redirect_to admin_projects_path
else
redirect_to projects_dashboard_path
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment