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 ee61eda + c2e2d3b commit 032a2aeCopy full SHA for 032a2ae
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