mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 08:36:49 +02:00
Solve issue in page.active for the homepage. Fixes #279
This commit is contained in:
@@ -1710,7 +1710,7 @@ class Page
|
||||
*/
|
||||
public function active()
|
||||
{
|
||||
$uri_path = rtrim(self::getGrav()['uri']->path(), '/');
|
||||
$uri_path = rtrim(self::getGrav()['uri']->path(), '/') ?: '/';
|
||||
$routes = self::getGrav()['pages']->routes();
|
||||
|
||||
if (isset($routes[$uri_path])) {
|
||||
|
||||
Reference in New Issue
Block a user