Skip to content

Commit 6276378

Browse files
Merge pull request #705 from simon-tma/patch-1
Handle SSR URLs with trailing slashes
2 parents 3f2d28d + 91b6c53 commit 6276378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ssr/HttpGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function dispatch(array $page): ?Response
1616
return null;
1717
}
1818

19-
$url = str_replace('/render', '', config('inertia.ssr.url', 'http://127.0.0.1:13714')).'/render';
19+
$url = str_replace('/render', '', rtrim(config('inertia.ssr.url', 'http://127.0.0.1:13714'), '/')) . '/render';
2020

2121
try {
2222
$response = Http::post($url, $page)->throw()->json();

0 commit comments

Comments
 (0)