Fix 404 when deleting a project

The deletion from the admin section was redirecting to the wrong address.
This commit is contained in:
DJ Mountney 2015-02-23 16:19:03 -08:00
parent c6860a5828
commit 746dd89ab0
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class ProjectsController < ApplicationController
flash[:alert] = 'Project deleted.'
if request.referer.include?('/admin')
redirect_to admin_namespace_projects_path
redirect_to admin_namespaces_projects_path
else
redirect_to projects_dashboard_path
end