Fix upload settings redirection

This commit is contained in:
Senén Rodero Rodríguez
2023-11-27 11:54:15 +01:00
committed by Javi Martín
parent 1fb351425f
commit cb91a7421d
6 changed files with 19 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ class Admin::SettingsController < Admin::BaseController
Setting.mime_types[group][content_type]
end
setting.update! value: mime_type_values.join(" ")
redirect_to admin_settings_path, notice: t("admin.settings.flash.updated")
redirect_to request_referer, notice: t("admin.settings.flash.updated")
end
private