diff --git a/lib/Pico.php b/lib/Pico.php index e2f7eec..65322e1 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -1788,7 +1788,7 @@ class Pico } $url = $this->getPageUrl($id); - if ($file !== $this->requestFile) { + if (($file !== $this->requestFile) || $this->is404Content) { $rawContent = $this->loadFileContent($file); // trigger onSinglePageContent event @@ -1823,7 +1823,7 @@ class Pico 'meta' => &$meta, ]; - if ($file === $this->requestFile) { + if (($file === $this->requestFile) && !$this->is404Content) { $page['content'] = &$this->content; }