Skip to content

Commit

Permalink
Merge pull request #1374 from alphagov/fix-double-redirect
Browse files Browse the repository at this point in the history
Fix double redirect_to when import works
  • Loading branch information
KludgeKML authored Aug 13, 2024
2 parents 3850c69 + 92a5183 commit be2b8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/local_authorities_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def upload_links_form
end

def upload_links_csv
redirect_to local_authority_path(@authority) if attempt_import(:local_authority, @authority)
return redirect_to local_authority_path(@authority) if attempt_import(:local_authority, @authority)

redirect_to(upload_links_form_local_authority_path(@authority))
end
Expand Down

0 comments on commit be2b8fa

Please sign in to comment.