Skip to content

Commit

Permalink
Request uri falls back to slash when page is missing (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored May 17, 2024
1 parent 018b695 commit 3bb1658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function prepareBaseUrl(): string

public function getPathInfo(): string
{
return $this->page->url();
return $this->page?->url() ?? '/';
}

public function path()
Expand Down

0 comments on commit 3bb1658

Please sign in to comment.