Commit 656cc7b8 authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch '345131-minor-fix-post-transfer-redirect' into 'master'

Redirect back to edit project path

See merge request gitlab-org/gitlab!76619
parents 6b22b988 5b3109ab
...@@ -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