← back to Wallco Ai
Fix /designs grid: accept ?category= as alias for ?cat=
b47680da1b96a7532fd0eb15d5ceb314b2f30607 · 2026-05-30 12:29:56 -0700 · Steve
External/shared links using ?category=<slug> were silently ignored and the
grid rendered the unfiltered whole catalog (2026-05-30 audit finding). Now
reads req.query.cat || req.query.category. Local fix, node -c clean.
NOT yet deployed — deploy-kamatera.sh failed on a data/elements symlink rsync
conflict; needs a deploy retry.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit b47680da1b96a7532fd0eb15d5ceb314b2f30607
Author: Steve <steve@designerwallcoverings.com>
Date: Sat May 30 12:29:56 2026 -0700
Fix /designs grid: accept ?category= as alias for ?cat=
External/shared links using ?category=<slug> were silently ignored and the
grid rendered the unfiltered whole catalog (2026-05-30 audit finding). Now
reads req.query.cat || req.query.category. Local fix, node -c clean.
NOT yet deployed — deploy-kamatera.sh failed on a data/elements symlink rsync
conflict; needs a deploy retry.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
server.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/server.js b/server.js
index d1a0dfe..4f2e319 100644
--- a/server.js
+++ b/server.js
@@ -6200,7 +6200,10 @@ app.get('/designs', (req, res) => {
// no new design has landed since their last crawl.
if (maybe304(req, res, CATALOG_LAST_MODIFIED)) return;
const sort = req.query.sort || 'newest';
- const cat = req.query.cat || '';
+ // Accept ?category= as an alias for ?cat= — external links / sister-site nav
+ // / shared URLs commonly use the long form; without this they were silently
+ // ignored and the grid rendered the UNFILTERED whole catalog (2026-05-30 audit).
+ const cat = req.query.cat || req.query.category || '';
const q = (req.query.q || '').toLowerCase().trim();
const page = Math.max(1, parseInt(req.query.page || '1', 10));
const PER = 60;
← 167dee0 Force-publish 190 clean drunk-animals from 5/29 to live (Ste
·
back to Wallco Ai
·
room mockups: fix framed-panel defect — clean full-wall temp fff1c63 →