[object Object]

← back to Stars of Design

starsofdesign: GET /favicon.ico fallback — returns public/favicon.svg so bots/legacy clients don't 404 on conventional path

f17b2587d3c0df02266cb4c435e326fbbc015b62 · 2026-05-12 18:25:28 -0700 · Steve Abrams

Files touched

Diff

commit f17b2587d3c0df02266cb4c435e326fbbc015b62
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue May 12 18:25:28 2026 -0700

    starsofdesign: GET /favicon.ico fallback — returns public/favicon.svg so bots/legacy clients don't 404 on conventional path
---
 routes/public.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/routes/public.js b/routes/public.js
index f7daf2c..5d8460b 100644
--- a/routes/public.js
+++ b/routes/public.js
@@ -26,6 +26,12 @@ router.use((req, res, next) => {
   next();
 });
 
+// /favicon.ico fallback for bots/legacy clients that don't honor
+// <link rel="icon" href="/favicon.svg">. Serves the same SVG file.
+router.get('/favicon.ico', (req, res) => {
+  res.sendFile(require('path').join(__dirname, '..', 'public', 'favicon.svg'));
+});
+
 router.get('/', (req, res, next) => {
   try {
     const all = data.load();

← 728ecab starsofdesign: GET /api/stats — JSON counts (designers/firms  ·  back to Stars of Design  ·  starsofdesign: JSON-LD schema — Organization on /firms/:slug 113ac14 →