Skip to content

Commit

Permalink
Redirect back after site upload deletion (#30141)
Browse files Browse the repository at this point in the history
  • Loading branch information
FawazFarid committed May 6, 2024
1 parent 116f01e commit 05126d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/site_uploads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def destroy

@site_upload.destroy!

redirect_to admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
redirect_back fallback_location: admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
end

private
Expand Down

0 comments on commit 05126d1

Please sign in to comment.