Commit 5b3109ab authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Ensure redirect back to edit project path

After transferring a project to a new namespace
we should redirect to the edit project page, using
the new project path
parent 5b904f0b
......@@ -122,7 +122,7 @@ class ProjectsController < Projects::ApplicationController
return redirect_to edit_project_path(@project)
end
render_edit
redirect_to edit_project_path(@project)
end
# rubocop: enable CodeReuse/ActiveRecord
......
......@@ -941,7 +941,7 @@ RSpec.describe ProjectsController do
project.reload
expect(project.namespace).to eq(new_namespace)
expect(response).to have_gitlab_http_status(:ok)
expect(response).to redirect_to(edit_project_path(project))
end
context 'when new namespace is empty' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment