mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 00:49:02 +02:00
make sure lookup path does not become empty (root sites)
This commit is contained in:
@@ -102,6 +102,7 @@ class Grav extends Container
|
||||
$uri = $c['uri'];
|
||||
|
||||
$path = rtrim($uri->path(), '/');
|
||||
$path = $path ?: '/';
|
||||
|
||||
$page = $pages->dispatch($path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user