Fix 404 when deleting a project
The deletion from the admin section was redirecting to the wrong address.
This commit is contained in:
parent
c6860a5828
commit
746dd89ab0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue