Skip to content

Firefox: Bookmark icon missing – /favicon.ico served as HTML #1125

@SolunaCG

Description

@SolunaCG

Describe the bug

In Firefox, the favicon is displayed correctly in the browser tab but is not persisted for bookmarks.
The reason is that /favicon.ico is served as text/html (SPA fallback) instead of image/x-icon in the default setup.
Firefox can use SVG favicons, but if /favicon.ico is invalid, it will not store any bookmark icon. Chrome is more tolerant and falls back to the SVG automatically.

Steps to reproduce

  1. Start the OpenCloud Docker bundle according to the official documentation (no changes, no external proxy).
  2. Open the instance in Firefox.
  3. Open DevTools → Network → filter for favicon.
  4. Observe:
  • GET /favicon.icoContent-Type: text/html (~10 KB HTML).
  • GET /favicon.svgContent-Type: image/svg+xml (correct icon).
  1. Save the site as a bookmark → the bookmark has no icon.

Expected behavior

  • /favicon.ico should be a real ICO file served with Content-Type: image/x-icon.
  • /favicon.svg should be served with Content-Type: image/svg+xml.
  • Both paths should be excluded from SPA fallback rewrites.
  • <link rel="icon"> should be included in the initial HTML pointing to these files.

Actual behavior

  • Firefox receives HTML instead of an ICO file for /favicon.ico and therefore does not store a bookmark icon.
  • The icon is visible in the browser tab (from the SVG) but not in bookmarks.

Setup

Additional context

  • Reproducible in Firefox 141.0 on Windows 10.
  • Chrome does not show the issue because it falls back to the SVG icon.
  • The problem occurs with the default Traefik configuration in the bundle (SPA catch-all serves HTML for /favicon.ico).

Image

Image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions