diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Url.php b/module/VuFind/src/VuFind/View/Helper/Root/Url.php index a838eaa404e2b2154ff073e8d9b9adac15cee539..12f8b45efaa6c590661d0edc09e2073bd04b4d2e 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Url.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Url.php @@ -95,7 +95,8 @@ class Url extends \Laminas\View\Helper\Url */ public function addQueryParameters($params, $reuseMatchedParams = true) { - $requestQuery = $this->request->getQuery()->toArray(); + $requestQuery = (null !== $this->request) + ? $this->request->getQuery()->toArray() : []; $options = [ 'query' => array_merge($requestQuery, $params), 'normalize_path' => false, // fix for VUFIND-1392