提交 893bd8ac 编写于 作者: K Kevin Boyd

Incorporating Dmitriy's referrer-based routing suggestion

上级 75b0ef82
......@@ -105,7 +105,12 @@ class ProjectsController < ApplicationController
respond_to do |format|
format.html do
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册