Merge branch 'fix-404-admin-delete' into 'master'
Fix 404 when deleting a project from the admin section This is some additional fallout from the rails upgrade. Need to use plural namespaces in the path function to get project deletion to go back to the project listing. See merge request !351
This commit is contained in:
commit
b7dd0decf8
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue