Framework\Route::getRoute() with parameters should return relative path

This commit is contained in:
mahagr
2018-02-25 17:37:23 -06:00
parent ec78319993
commit bf16e2e854

View File

@@ -85,12 +85,10 @@ class Route
public function getRoute($offset = 0, $length = null)
{
if ($offset !== 0 || $length !== null) {
$route = implode('/', $this->getRouteParts($offset, $length));
} else {
$route = $this->route;
return implode('/', $this->getRouteParts($offset, $length));
}
return '/' . $route;
return '/' . $this->route;
}
/**