diff --git a/module/VuFind/src/VuFind/Controller/OverdriveController.php b/module/VuFind/src/VuFind/Controller/OverdriveController.php index e4d369d0a50676d82703b074e43d044df567f997..edeb4fba9907919c67d01abd3acc788e6ea6d645 100644 --- a/module/VuFind/src/VuFind/Controller/OverdriveController.php +++ b/module/VuFind/src/VuFind/Controller/OverdriveController.php @@ -283,8 +283,7 @@ class OverdriveController extends AbstractBase implements LoggerAwareInterface //Redirect to resource $url = $result->data->downloadLink; $this->debug("redirecting to: $url"); - header("Location: $url"); - exit(); + return $this->redirect()->toUrl($url); } } else { $this->logWarning("overdrive action not defined: $action");