From a46ba8eab9c58c3f5489e34fc094fb0f2fff17a9 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 24 Apr 2020 07:55:30 -0400 Subject: [PATCH] Use more appropriate redirect method. --- module/VuFind/src/VuFind/Controller/OverdriveController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Controller/OverdriveController.php b/module/VuFind/src/VuFind/Controller/OverdriveController.php index e4d369d0a50..edeb4fba990 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"); -- GitLab