-
-
Notifications
You must be signed in to change notification settings - Fork 69k
[Bug] Webchat path returns HTML for favicon.svg instead of serving static file (broken logo) #11556
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The logo in the Gateway Dashboard header shows a broken image icon when accessing via the /webchat/ path.
Environment
- OpenClaw version: 2026.2.6-3
- OS: Windows 11 with WSL2 Ubuntu
- URL:
http://localhost:18789/webchat/chat?session=agent%3Amain%3Amain
Expected behavior
The OpenClaw logo should display in the header.
Actual behavior
A broken image placeholder is shown. The logo path returns HTML (200 OK, Content-Type: text/html) instead of the actual SVG file.
Reproduction
- Start the gateway
- Navigate to
http://localhost:18789/webchat/chat - Open DevTools → Network tab
- Observe that
favicon.svgrequests returntext/htmlinstead ofimage/svg+xml
Investigation
bash
Root path works correctly:
Content-Type: image/svg+xml ✓
Webchat path returns HTML instead:
Content-Type: text/html; charset=utf-8 ✗
The webchat route handler catches all requests and returns the SPA HTML, preventing static files from being served correctly at that path.
Related Issues
#7166, #7178 - Similar logo issues but with basePath configuration
Suggested Fix
Serve static assets before the webchat SPA catch-all route, or use an absolute root path for the logo.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.