We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 471bbe1 + 5dd0690 commit c2e2d3bCopy full SHA for c2e2d3b
src/Pecee/SimpleRouter/Route/RouteGroup.php
@@ -78,7 +78,7 @@ public function matchRoute(string $url, Request $request): bool
78
}
79
80
/* Skip if prefix doesn't match */
81
- if ($this->prefix !== null && stripos($url, $parsedPrefix) === false) {
+ if ($this->prefix !== null && stripos($url, rtrim($parsedPrefix, '/') . '/') === false) {
82
return false;
83
84
0 commit comments