mirror of
https://github.com/getgrav/grav.git
synced 2026-03-05 12:01:37 +01:00
Framework\Route::getRoute() with parameters should return relative path
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user