summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Mountney <dmountney@perforce.com>2015-02-23 16:19:03 -0800
committerDJ Mountney <dmountney@perforce.com>2015-02-23 16:19:03 -0800
commit746dd89ab010299f731c195082087d32f25698df (patch)
tree9650341b20290afe43e09fbaaf889111f176ccd7
parentc6860a5828fe569f6a81e2c96bb7e4a32f572a29 (diff)
downloadgitlab-ce-746dd89ab010299f731c195082087d32f25698df.tar.gz
Fix 404 when deleting a project
The deletion from the admin section was redirecting to the wrong address.
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 38341b1c8c6..d1583e6ebfb 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -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