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),