JianFeeeee
7ebebbc3a9
fix(icon): 补 /icons/favicon.ico —— 标签栏无图标的真因
上一版只改 index.html 注入 /favicon.svg,实测仍不显示。用 MutationObserver
在真实浏览器里观察到:**Dashy 前端 JS 在运行时把 <link rel=icon> 改写成
/icons/favicon.ico**,服务端注入的标签被它覆盖;而镜像里从来不存在
/icons/ 目录 ⇒ 请求落到 try_files 兜底的 index.html,content-type 是
text/html,浏览器当无效图标忽略(于是表现为「图标消失」)。
静态改 index.html 治不了本,只能把这个路径补上:
Dockerfile 与 zd-host.sh 都 COPY favicon.{ico,svg} 到 /app/dashy/icons/。
已先在 106 上热修(只 cp 不重启,无闪断)恢复显示。
实测:/icons/favicon.ico → 200 image/x-icon,浏览器解码 16x16 成功;
apple-touch-icon 180x180 正常。
2026-10-03 08:43:35 +08:00
..
2026-09-12 10:10:52 +08:00
2026-10-03 08:37:54 +08:00
2026-09-12 10:10:52 +08:00
2026-09-12 10:10:52 +08:00
2026-10-02 11:24:55 +08:00
2026-10-02 11:24:55 +08:00
2026-09-12 10:10:52 +08:00
2026-09-12 10:10:52 +08:00
2026-10-03 08:43:35 +08:00
2026-09-12 10:38:17 +08:00