Skip to content

Commit

Permalink
fall back to slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed May 17, 2024
1 parent 018b695 commit b4145b2
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 b4145b2

Please sign in to comment.