From 3bb1658d2b9c33f809071a7788c59d19ad6cc57c Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Fri, 17 May 2024 15:40:01 -0400 Subject: [PATCH] Request uri falls back to slash when page is missing (#165) --- src/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()