[BUGFIX] BootManager findRoute not working.

- Fixed findRoute not working in BootManager as reported by issue: #448
- Added more comprehensive php-unit tests for bootmanagers including findUrl.
This commit is contained in:
Simon Sessingø
2021-03-22 18:05:27 +01:00
parent 11fffd9a7b
commit 801f1e68cc
6 changed files with 90 additions and 18 deletions
+1 -1
View File
@@ -1495,7 +1495,7 @@ class CustomRouterRules implement IRouterBootManager
// If the current url matches the rewrite url, we use our custom route
if($request->getUrl()->getPath() === $url) {
if($request->getUrl()->contains($url)) {
$request->setRewriteUrl($rule);
}
}