Browse Source

download url using the islandora_utils getDownloadUrl method

pull/845/head
Willow Gillingham 4 years ago committed by GitHub
parent
commit
7bf5e0d467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      islandora.tokens.inc

2
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;
}
}

Loading…
Cancel
Save