We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c8cdb commit 227ef9bCopy full SHA for 227ef9b
chat/src/components/chat-provider.tsx
@@ -57,7 +57,8 @@ export function ChatProvider({ children }: PropsWithChildren) {
57
const [serverStatus, setServerStatus] = useState<ServerStatus>("unknown");
58
const eventSourceRef = useRef<EventSource | null>(null);
59
const searchParams = useSearchParams();
60
- const agentAPIUrl = searchParams.get("url") || window.location.origin;
+ const defaultAgentAPIURL = new URL("../../", window.location.href).toString();
61
+ const agentAPIUrl = searchParams.get("url") || defaultAgentAPIURL;
62
63
// Set up SSE connection to the events endpoint
64
useEffect(() => {
0 commit comments