Skip to content

Commit 1ced25c

Browse files
committed
Add a comment in the code
1 parent 0b60a4c commit 1ced25c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/EventListener/AdminRouterSubscriber.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ private function getSymfonyControllerFqcn(Request $request): ?string
289289
{
290290
$routeName = $request->query->get(EA::ROUTE_NAME);
291291
$routeParams = $request->query->all()[EA::ROUTE_PARAMS] ?? [];
292+
// the "relative path" URL type is needed to be compatible with applications
293+
// running behind a proxy under a permanent subpath prefix (AKA sub-folder,
294+
// sub-url or sub-path - using the HTTP header x-forwarded-prefix)
292295
$url = $this->urlGenerator->generate($routeName, $routeParams, UrlGeneratorInterface::RELATIVE_PATH);
293296

294297
$newRequest = $request->duplicate();

0 commit comments

Comments
 (0)