fix(spa): serve favicon/manifest at root + stop tab sticking on Loading... #402
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-favicon-manifest-and-loading-title"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two staging-visible frontend bugs on msp.a8n.systems.
1. Favicon + PWA manifest not served (missing icon, manifest parse error)
favicon.svg/.ico,apple-touch-icon.png,manifest.webmanifest, andicon-192/512/maskable.pnglive underassets/, butdx builddoes not emit them intoweb/publicat the root paths index.html and the manifest reference (/favicon.svg,/manifest.webmanifest,/icon-192.png, ...). Confirmed live:GET /favicon.svgand/manifest.webmanifestboth returncontent-type: text/html- Caddy'stry_files ... /index.htmlfallback. So the browser gets no favicon and logsmanifest.webmanifest: Syntax error.Fix: copy the seven files into the Caddy web root (
/usr/share/caddy) in the Dockerfile runtime stage, sofile_serverserves them before the SPA fallback. (The manifest and index.html reference them at root, and the manifest's own iconsrcs are/icon-192.pngetc., so root is the right place.)2. Tab stuck on "Loading... | Mokosh Platform"
AppLayoutsetsdocument.title = "{page} | Mokosh Platform". Detail pages passtitle = "Loading..."while their record fetches, then swap in the record name - but while the dashboard data was CSP-blocked those fetches never resolved, leaving the tab on the placeholder.Fix: treat the literal
"Loading..."like an empty title in thedocument.titleeffect, so the tab reads a cleanMokosh Platformuntil the real title arrives (no functional change to the visible page header/skeleton).Notes
--lockedconcern (mokosh-apps builds without it).