From 7bf5e0d4675e139e17518857e1357905e88bdfd8 Mon Sep 17 00:00:00 2001 From: Willow Gillingham Date: Mon, 26 Jul 2021 11:32:53 -0700 Subject: [PATCH] download url using the islandora_utils getDownloadUrl method --- islandora.tokens.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.tokens.inc b/islandora.tokens.inc index 0e8e7cb9..8d1c4b6b 100644 --- a/islandora.tokens.inc +++ b/islandora.tokens.inc @@ -151,7 +151,7 @@ function islandora_url_to_service_file_media_by_mimetype($node, $mime_type) { if (!is_null($fid_value)) { $file = File::load($fid_value); if ($file) { - $url = $file->getFileUri(); + $url = $islandora_utils->getDownloadUrl($file); return $url; } }