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 ...@@ -122,7 +122,7 @@ class ProjectsController < Projects::ApplicationController
return redirect_to edit_project_path(@project) return redirect_to edit_project_path(@project)
end end
render_edit redirect_to edit_project_path(@project)
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
......
...@@ -941,7 +941,7 @@ RSpec.describe ProjectsController do ...@@ -941,7 +941,7 @@ RSpec.describe ProjectsController do
project.reload project.reload
expect(project.namespace).to eq(new_namespace) 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 end
context 'when new namespace is empty' do 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