make sure lookup path does not become empty (root sites)

This commit is contained in:
Gert
2015-05-09 16:08:33 +02:00
parent 718d443d52
commit cabec818e2

View File

@@ -102,6 +102,7 @@ class Grav extends Container
$uri = $c['uri'];
$path = rtrim($uri->path(), '/');
$path = $path ?: '/';
$page = $pages->dispatch($path);