Skip to content

Commit

Permalink
Add a comment in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Feb 10, 2025
1 parent 0b60a4c commit 1ced25c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EventListener/AdminRouterSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ private function getSymfonyControllerFqcn(Request $request): ?string
{
$routeName = $request->query->get(EA::ROUTE_NAME);
$routeParams = $request->query->all()[EA::ROUTE_PARAMS] ?? [];
// the "relative path" URL type is needed to be compatible with applications
// running behind a proxy under a permanent subpath prefix (AKA sub-folder,
// sub-url or sub-path - using the HTTP header x-forwarded-prefix)
$url = $this->urlGenerator->generate($routeName, $routeParams, UrlGeneratorInterface::RELATIVE_PATH);

$newRequest = $request->duplicate();
Expand Down

0 comments on commit 1ced25c

Please sign in to comment.