diff --git a/Classes/Controller/AbstractController.php b/Classes/Controller/AbstractController.php index e7ea92004..a5f7ba25c 100644 --- a/Classes/Controller/AbstractController.php +++ b/Classes/Controller/AbstractController.php @@ -169,7 +169,7 @@ protected function configureProxyUrl(string &$url): void ->setCreateAbsoluteUri(!empty($this->settings['forceAbsoluteUrl'])) ->setArguments( [ - 'middleware' => 'dlf/page-view-proxy', + 'middleware' => 'page-view-proxy', 'url' => $url, 'uHash' => GeneralUtility::hmac($url, 'PageViewProxy') ] diff --git a/Classes/Middleware/PageViewProxy.php b/Classes/Middleware/PageViewProxy.php index 20223dc90..8e2441937 100644 --- a/Classes/Middleware/PageViewProxy.php +++ b/Classes/Middleware/PageViewProxy.php @@ -78,7 +78,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface $response = $handler->handle($request); // Get input parameters and decrypt core name. $parameters = $request->getQueryParams(); - if (!isset($parameters['middleware']) || ($parameters['middleware'] != 'dlf/page-view-proxy')) { + if (!isset($parameters['middleware']) || ($parameters['middleware'] != 'page-view-proxy')) { return $response; } diff --git a/Configuration/RequestMiddlewares.php b/Configuration/RequestMiddlewares.php index f7ddb659e..42dcebd0e 100644 --- a/Configuration/RequestMiddlewares.php +++ b/Configuration/RequestMiddlewares.php @@ -12,7 +12,7 @@ return [ 'backend' => [ - 'dlf/page-view-proxy' => [ + 'page-view-proxy' => [ 'target' => \Kitodo\Dlf\Middleware\PageViewProxy::class, ], ], diff --git a/Tests/Functional/Api/PageViewProxyDisabledTest.php b/Tests/Functional/Api/PageViewProxyDisabledTest.php index 00632e9bb..6c4c302b3 100644 --- a/Tests/Functional/Api/PageViewProxyDisabledTest.php +++ b/Tests/Functional/Api/PageViewProxyDisabledTest.php @@ -11,7 +11,7 @@ class PageViewProxyDisabledTest extends FunctionalTestCase protected function queryProxy(array $query, string $method = 'GET') { - $query['middleware'] = 'dlf/page-view-proxy'; + $query['middleware'] = 'page-view-proxy'; return $this->httpClient->request($method, '', [ 'query' => $query, diff --git a/Tests/Functional/Api/PageViewProxyTest.php b/Tests/Functional/Api/PageViewProxyTest.php index 32b9de848..557f36783 100644 --- a/Tests/Functional/Api/PageViewProxyTest.php +++ b/Tests/Functional/Api/PageViewProxyTest.php @@ -18,7 +18,7 @@ protected function getDlfConfiguration() protected function queryProxy(array $query, string $method = 'GET') { - $query['middleware'] = 'dlf/page-view-proxy'; + $query['middleware'] = 'page-view-proxy'; return $this->httpClient->request($method, '', [ 'query' => $query,