mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Fix 404 when deleting a project
The deletion from the admin section was redirecting to the wrong address.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user