diff --git a/modules/file/file.controller.php b/modules/file/file.controller.php index c42aaf6dc..3f24cae0c 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -551,7 +551,7 @@ class FileController extends File { $download_type = 'inline'; } - if (Context::get('force_download') === 'Y') + if ($mime_type === 'image/svg+xml' || Context::get('force_download') === 'Y') { $download_type = 'attachment'; }