mirror of
https://github.com/getgrav/grav.git
synced 2026-07-11 21:32:46 +02:00
Initialize route and raw_route, fix empty route as values
This commit is contained in:
@@ -271,7 +271,8 @@ class Page implements PageInterface
|
||||
if ($exists) {
|
||||
$aPage = new Page();
|
||||
$aPage->init(new SplFileInfo($path), $languageExtension);
|
||||
|
||||
$aPage->route($this->route());
|
||||
$aPage->rawRoute($this->rawRoute());
|
||||
$route = $aPage->header()->routes['default'] ?? $aPage->rawRoute();
|
||||
if (!$route) {
|
||||
$route = $aPage->route();
|
||||
|
||||
Reference in New Issue
Block a user