diff --git a/module/VuFind/src/VuFind/View/Helper/Root/RecordLink.php b/module/VuFind/src/VuFind/View/Helper/Root/RecordLink.php
index 452fab75dd470ad71af1245af2c8d8cd4d77fd37..219d8e1450c59d354ddbf8b75cf9e3cdd66a2ccc 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/RecordLink.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/RecordLink.php
@@ -134,7 +134,6 @@ class RecordLink extends \Zend\View\Helper\AbstractHelper
     {
         if (is_array($url)) {
             // Assemble URL string from array parts:
-            $urlHelper = $this->getView()->plugin('url');
             $finalUrl
                 = $this->getActionUrl('VuFind|' . $url['record'], $url['action']);
             if (isset($url['query'])) {