[object Object]

← back to Wallco Ai

feat(/designs): browser tab title reflects active filter — 'Rose designs · 296 designs — wallco.ai' instead of always 'All Designs'; helps tab navigation + SERP truth

eee4f56d6d169fcdd45d3d9a1a51b0b9ad8163e7 · 2026-05-14 10:09:32 -0700 · SteveStudio2

Files touched

Diff

commit eee4f56d6d169fcdd45d3d9a1a51b0b9ad8163e7
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Thu May 14 10:09:32 2026 -0700

    feat(/designs): browser tab title reflects active filter — 'Rose designs · 296 designs — wallco.ai' instead of always 'All Designs'; helps tab navigation + SERP truth
---
 server.js | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 07b787a..aa4313c 100644
--- a/server.js
+++ b/server.js
@@ -3388,8 +3388,21 @@ app.get('/designs', (req, res) => {
 
   const schema = `${JSON.stringify(itemList)}</script>\n<script type="application/ld+json">${JSON.stringify(breadcrumb)}`;
 
+  // Title reflects active filter so browser-tab + search results read true.
+  // Composes parts in priority order: query > hue > motif > cat > room. Caps
+  // at the first non-empty crumb to keep the title scannable (≤60 chars).
+  const _titleCrumbs = [
+    q       && `"${q}"`,
+    hueQ    && `${hueQ.charAt(0).toUpperCase() + hueQ.slice(1)} designs`,
+    motifQ  && `${motifQ.charAt(0).toUpperCase() + motifQ.slice(1)} motif`,
+    cat     && `${cat.charAt(0).toUpperCase() + cat.slice(1)}`,
+    roomQ   && 'In-room previews'
+  ].filter(Boolean);
+  const _titleHead = _titleCrumbs.length
+    ? `${_titleCrumbs[0]} · ${total} design${total===1?'':'s'} — wallco.ai`
+    : `All Designs — wallco.ai | AI-Original Wallpaper & Murals`;
   res.type('html').send(`${htmlHead({
-    title: `All Designs — wallco.ai | AI-Original Wallpaper & Murals`,
+    title: _titleHead,
     description: `Browse ${total} wallco.ai original wallpaper designs. Every pattern unique, hand-curated, never repeated. Free samples available.`,
     canonical: `https://wallco.ai/designs`
   })}

← 53149e4 feat(/designs): kbd '/' hint inside search input — discovera  ·  back to Wallco Ai  ·  feat(/designs): clear-X button when search query non-empty; 7a4ab66 →