better/safer parent route logic

This commit is contained in:
Andy Miller
2015-08-20 17:38:07 -06:00
parent 25ac6a0600
commit 0675ce718c

View File

@@ -610,7 +610,7 @@ class Page
return $this->raw_content;
}
if ($name == 'route') {
return dirname($this->route());
return $this->parent()->rawRoute();
}
if ($name == 'order') {
$order = $this->order();