Outputds.php not redirecting requests as expected

Project:RUcore dlr/EDIT
Version:7.2
Component:Code
Category:bug report
Priority:normal
Assigned:triggs
Status:closed
Description

Outputds.php should be redirecting requests and not serving files. Example below.

<a href="http://rep-test.libraries.rutgers.edu/dlr/outputds.php?pid=rutgers-lib:200993&amp;ds=PDF-1" title="http://rep-test.libraries.rutgers.edu/dlr/outputds.php?pid=rutgers-lib:200993&amp;ds=PDF-1">http://rep-test.libraries.rutgers.edu/dlr/outputds.php?pid=rutgers-lib:2...</a>

should redirect to

<a href="http://rucore-test.libraries.rutgers.edu/rutgers-lib/200993/PDF/1/" title="http://rucore-test.libraries.rutgers.edu/rutgers-lib/200993/PDF/1/">http://rucore-test.libraries.rutgers.edu/rutgers-lib/200993/PDF/1/</a>

Comments

#1

Are you sure you don't have a cached version? This is outputds.php now:
<?php
$ds = "";
$number = "";
$pid = "";
$prefix = "";
include_once "/mellon/includes/incs.php";
foreach($_GET AS $key => $value) { ${$key} = $value; }
foreach($_POST AS $key => $value) { ${$key} = $value; }
$dsid = preg_replace("/\-[0-9]*/", "", $ds);
$seq = preg_replace("/^.*\-/", "", $ds);
$dsid = strtolower($dsid);
list($prefix,$number) = preg_split("/:/", $pid);
header( "Location: http://$rucorebase/$prefix/$number/$dsid/$seq/" );
exit;
?>

#2

Status:active» closed

Ahh the URL in the location bar doesn't change, but looking at the Apache logs requests are being redirected and filled by the new URLs. I will close this. Thanks!

Back to top