Skip to content

Commit

Permalink
Routes fall back to default site (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Apr 18, 2022
1 parent 1acc7b8 commit bd2604b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function urlWithoutRedirect()

public function site()
{
return Site::findByUrl($this->url);
return Site::findByUrl($this->url) ?? Site::default();
}

public function toResponse($request)
Expand Down

0 comments on commit bd2604b

Please sign in to comment.