← back to Wallco Ai
PDP themes: route v1-compact/v2-bento/v3-tabs through themeVariantSend so all 17 variants + monolith carry the global-search nav (was missing on these 3 — raw sendFile skipped htmlHeader)
f9e64acaf5f66e10cd7a97c45524d29e6b12b3ee · 2026-06-03 14:21:36 -0700 · Steve Abrams
Files touched
Diff
commit f9e64acaf5f66e10cd7a97c45524d29e6b12b3ee
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Jun 3 14:21:36 2026 -0700
PDP themes: route v1-compact/v2-bento/v3-tabs through themeVariantSend so all 17 variants + monolith carry the global-search nav (was missing on these 3 — raw sendFile skipped htmlHeader)
---
server.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server.js b/server.js
index 3a887a8..97dc79d 100644
--- a/server.js
+++ b/server.js
@@ -535,7 +535,7 @@ app.get('/api/design/:id', (req, res) => {
app.get('/design/:id/bento', (req, res) => {
const id = parseInt(req.params.id, 10);
if (!Number.isFinite(id) || id < 1) return res.status(404).type('html').send('<h1>404</h1>');
- res.sendFile(path.join(__dirname, 'public', 'theme-variants', 'v2-bento.html'));
+ return themeVariantSend(req, res, 'v2-bento.html'); // header+global-search+corner-nav, like v4-v17
});
// ── /design/:id/compact — theme V1 (Two-Column Compact). Image left 60%,
@@ -544,7 +544,7 @@ app.get('/design/:id/bento', (req, res) => {
app.get('/design/:id/compact', (req, res) => {
const id = parseInt(req.params.id, 10);
if (!Number.isFinite(id) || id < 1) return res.status(404).type('html').send('<h1>404</h1>');
- res.sendFile(path.join(__dirname, 'public', 'theme-variants', 'v1-compact.html'));
+ return themeVariantSend(req, res, 'v1-compact.html'); // header+global-search+corner-nav, like v4-v17
});
// ── /design/:id/tabs — theme V3 (Sticky Hero + Tabs). Pinned hero left,
@@ -553,7 +553,7 @@ app.get('/design/:id/compact', (req, res) => {
app.get('/design/:id/tabs', (req, res) => {
const id = parseInt(req.params.id, 10);
if (!Number.isFinite(id) || id < 1) return res.status(404).type('html').send('<h1>404</h1>');
- res.sendFile(path.join(__dirname, 'public', 'theme-variants', 'v3-tabs.html'));
+ return themeVariantSend(req, res, 'v3-tabs.html'); // header+global-search+corner-nav, like v4-v17
});
// ── Theme variants V4–V10. All mirror V1–V3: static HTML at
← bd8def2 build-mural-master: retry per-tile ESRGAN calls (4x backoff)
·
back to Wallco Ai
·
PDP live-theme takeover (/design/:id serving the active them 61159ee →