Browse Source

Handle redirects in a proper way.

pull/691/head
Jordan Dukart 7 years ago
parent
commit
3243431cae
  1. 5
      includes/datastream.inc

5
includes/datastream.inc

@ -65,6 +65,11 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F
} }
header("Content-Disposition: attachment; filename=\"$filename\""); header("Content-Disposition: attachment; filename=\"$filename\"");
} }
else {
if ($datastream->controlGroup == 'R') {
drupal_goto($datastream->url);
}
}
$cache_check = islandora_view_datastream_cache_check($datastream); $cache_check = islandora_view_datastream_cache_check($datastream);
if ($cache_check !== 200) { if ($cache_check !== 200) {

Loading…
Cancel
Save