Skip to content

Commit e1b541f

Browse files
Fix remaining localhost fallback in playground Request URL display
The previous fix only addressed line 251, but line 1074 still had a hardcoded "localhost" fallback for the Request URL display section. Now both occurrences use window.location.hostname as the fallback. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ca66259 commit e1b541f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/app/playground/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ export default function PlaygroundPage() {
10711071
<span className="font-medium text-sm">Request URL</span>
10721072
</div>
10731073
<div className="font-mono text-sm break-all">
1074-
{selectedRoute.protocol}://{selectedRoute.listener.hostname || "localhost"}:
1074+
{selectedRoute.protocol}://{selectedRoute.listener.hostname || (typeof window !== "undefined" ? window.location.hostname : "localhost")}:
10751075
{selectedRoute.bindPort}
10761076
{request.path}
10771077
</div>

0 commit comments

Comments
 (0)