Skip to content

Commit b4bf409

Browse files
committed
wip
1 parent 537668b commit b4bf409

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/Router.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ public function __construct(protected ContentFinder $contentFinder)
1818

1919
public function parse(Request $request): Response
2020
{
21-
$path = $request->getScriptName();
21+
$path = $request->getPathInfo();
22+
if (!$path) {
23+
$path = '/';
24+
}
2225

2326
if ($this->isStaticFile($path)) {
2427
return new Response(

0 commit comments

Comments
 (0)