From 472a3283c80f0ec11fb0a7e33d565ef6addda0f8 Mon Sep 17 00:00:00 2001 From: Ivan The Geek <> Date: Mon, 25 May 2026 13:38:32 -0400 Subject: [PATCH] fix(#1961): Correct favicon link tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three small markup fixes in src/app.html: - Update the icon link's `type` from `image/png` to `image/svg+xml` so it matches its `favicon.svg` href. The MIME mismatch was introduced in #1065 when the href was switched from `.png` to `.svg` without updating `type`; browsers ignore the attribute and trust the Content-Type so it rendered fine, but the markup was incorrect. - Add an explicit `image/x-icon` link for `favicon.ico`. The file already ships in `static/`, but it was previously discoverable only via the root `/favicon.ico` auto-probe. - Add an `apple-touch-icon` link pointing at `favicon.png` (512×512) so iOS "Add to Home Screen" uses the Mermaid logo instead of a low-quality page screenshot. No behavior change for existing desktop users. --- src/app.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.html b/src/app.html index 88d4ac1c..2edb5378 100644 --- a/src/app.html +++ b/src/app.html @@ -8,7 +8,9 @@ - + + +