Skip to content

Commit

Permalink
fix should run
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 14, 2023
1 parent f3c32a3 commit a917cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Root.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function shouldRun(Request $request): bool

$segments = explode('/', $request->getRequestUri());

return $request->getHost() === $host
return (empty(static::getDomain()) || $request->getHost() === $host)
&& (static::getPath() === '/' || $segments[1] === trim(static::getPath(), '/'));
}

Expand Down

0 comments on commit a917cac

Please sign in to comment.