From efebd2cba8c5fe75c0f41711d9c7c84984208a20 Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Fri, 27 Sep 2024 11:56:25 +0200 Subject: [PATCH] Fix path for referer links --- src/EventListener/StoreRefererListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/StoreRefererListener.php b/src/EventListener/StoreRefererListener.php index d86723ec..a14af538 100644 --- a/src/EventListener/StoreRefererListener.php +++ b/src/EventListener/StoreRefererListener.php @@ -137,6 +137,6 @@ private function prepareBackendReferer(string $refererId, ?array $referers = nul */ private function getRelativeRequestUri(Request $request): string { - return substr($request->getRequestUri(), strlen($request->getBasePath()) + 1); + return substr($request->getRequestUri(), strlen($request->getBasePath())); } }