Merge pull request #140 from gnh1201/patch-master-20210817

Fix #138 Routing failure
This commit is contained in:
Namhyeon Go 2021-08-17 14:50:31 +09:00 committed by GitHub
commit da907aa4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ if(!is_fn("read_route")) {
}
if(strpos($uri, $base_route) == 0) {
$_routes = explode("/", substr($nevt['self'], strlen($base_route)));
$_routes = explode("/", substr($uri, strlen($base_route)));
foreach($_routes as $_route) {
if($_route != "index.php") {
$route = $_route;