diff --git a/src/Request.php b/src/Request.php index e785114..f08aa18 100644 --- a/src/Request.php +++ b/src/Request.php @@ -48,7 +48,7 @@ protected function prepareBaseUrl(): string public function getPathInfo(): string { - return $this->page->url(); + return $this->page?->url() ?? '/'; } public function path()