From 245c848c9996acb1d15410a709874ad4d6bd7c41 Mon Sep 17 00:00:00 2001 From: Ivan Kljun Date: Tue, 9 Jan 2024 09:44:00 +0100 Subject: [PATCH] Change to asset_download_path in Asset Serializer [SCI-9806] --- app/serializers/asset_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/asset_serializer.rb b/app/serializers/asset_serializer.rb index 764a08f8e..a3049393d 100644 --- a/app/serializers/asset_serializer.rb +++ b/app/serializers/asset_serializer.rb @@ -120,7 +120,7 @@ class AssetSerializer < ActiveModel::Serializer def urls urls = { preview: asset_file_preview_path(object), - download: (rails_blob_path(object.file, disposition: 'attachment') if attached), + download: (asset_download_path(object) if attached), load_asset: load_asset_path(object), asset_file: asset_file_url_path(object), marvin_js: marvin_js_asset_path(object),