Skip to content

Commit 3bb1658

Browse files
authored
Request uri falls back to slash when page is missing (#165)
1 parent 018b695 commit 3bb1658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function prepareBaseUrl(): string
4848

4949
public function getPathInfo(): string
5050
{
51-
return $this->page->url();
51+
return $this->page?->url() ?? '/';
5252
}
5353

5454
public function path()

0 commit comments

Comments
 (0)