mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 21:22:17 +00:00
[BUGFIX] Fixed missing "/" in getRoute on some rare occasions.
This commit is contained in:
@@ -233,7 +233,7 @@ class RouterBase {
|
|||||||
} else {
|
} else {
|
||||||
// If no parameters are specified in the route, assume that the provided parameters should be used.
|
// If no parameters are specified in the route, assume that the provided parameters should be used.
|
||||||
if(count($parameters)) {
|
if(count($parameters)) {
|
||||||
$url .= join('/', $parameters);
|
$url = rtrim($url, '/') . '/' . join('/', $parameters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user