[Bug] App icon (logo.png) does not follow the Branding nav-icon #773

Closed
opened 2026-07-12 23:40:34 +00:00 by jmiller · 0 comments
Owner

Summary

Admin Branding settings let an admin upload a custom nav-icon (logo-small.png), login-logo, and favicon (favicon.png) into custom/public/assets/img/. But the app iconlogo.png — has no settings control, so it stays the shipped default even after the instance is otherwise fully branded.

logo.png is used as:

  • the 512x512 PWA / web-manifest icon (routers/web/misc/misc.go SiteManifest), and
  • the navbar logo fallback (templates/base/head_navbar.tmpl onerror).

So a branded instance still shows the default MokoGitea mark as its installable app icon.

Expected

When the admin uploads the nav-icon, the app icon (logo.png) should default to the same image; resetting the nav-icon should also revert the app icon.

Fix

  • routers/web/admin/branding.go: on nav-icon upload, also write logo.png; on nav-icon reset, also remove logo.png.
  • Branding template: note that the nav icon also sets the app icon.

/kind bug

## Summary Admin **Branding** settings let an admin upload a custom **nav-icon** (`logo-small.png`), **login-logo**, and **favicon** (`favicon.png`) into `custom/public/assets/img/`. But the **app icon** — `logo.png` — has no settings control, so it stays the shipped default even after the instance is otherwise fully branded. `logo.png` is used as: - the 512x512 PWA / web-manifest icon (`routers/web/misc/misc.go` `SiteManifest`), and - the navbar logo fallback (`templates/base/head_navbar.tmpl` `onerror`). So a branded instance still shows the default MokoGitea mark as its installable app icon. ## Expected When the admin uploads the **nav-icon**, the app icon (`logo.png`) should default to the same image; resetting the nav-icon should also revert the app icon. ## Fix - `routers/web/admin/branding.go`: on nav-icon upload, also write `logo.png`; on nav-icon reset, also remove `logo.png`. - Branding template: note that the nav icon also sets the app icon. /kind bug
Sign in to join this conversation.