Skip to content

Commit 4274280

Browse files
committed
merged branch DHorchler/2.1 (PR #7193)
This PR was merged into the 2.1 branch. Discussion ---------- Routing issue with installation in a sub-directory ref: symfony/symfony#7129 Commits ------- 8d9cd42 Routing issue with installation in a sub-directory ref: symfony/symfony#7129
2 parents bc28d9b + 9a60de6 commit 4274280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Routing/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function resolveParameters(RouteCollection $collection)
9494
foreach ($route->getRequirements() as $name => $value) {
9595
$route->setRequirement($name, $this->resolveString($value));
9696
}
97-
97+
$collection->setPrefix('/'.ltrim($this->resolveString($collection->getPrefix()), '/'));
9898
$route->setPattern($this->resolveString($route->getPattern()));
9999
}
100100
}

0 commit comments

Comments
 (0)