Skip to content

[Bug] Webchat path returns HTML for favicon.svg instead of serving static file (broken logo) #11556

@ClawCorpinc

Description

@ClawCorpinc

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

  1. Start the gateway
  2. Navigate to http://localhost:18789/webchat/chat
  3. Open DevTools → Network tab
  4. Observe that favicon.svg requests return text/html instead of image/svg+xml

Investigation

bash

Root path works correctly:

curl -s -I 'http://localhost:18789/favicon.svg'

Content-Type: image/svg+xml ✓

Webchat path returns HTML instead:

curl -s -I 'http://localhost:18789/webchat/favicon.svg'

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions