mirror of
https://github.com/getgrav/grav.git
synced 2026-07-01 03:27:24 +02:00
better/safer parent route logic
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user