Redirect back after site upload deletion (#30141)

pull/2704/head
Fawaz Farid 2024-05-06 16:31:39 +03:00 committed by GitHub
parent 116f01ec7d
commit 05126d106f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ module Admin
@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