← back to Wallco Ai
drunk-animals: /drunk-animals friendly URL → 302 to /designs?cat=drunk-animals
137096393d4174061f328ba152075fd02b330761 · 2026-05-12 19:36:24 -0700 · SteveStudio2
Bookmarkable shortcut + forwards query params so deep links work:
/drunk-animals?sort=newest → /designs?cat=drunk-animals&sort=newest
Smoke-tested locally — 302 Location header correct.
Files touched
Diff
commit 137096393d4174061f328ba152075fd02b330761
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Tue May 12 19:36:24 2026 -0700
drunk-animals: /drunk-animals friendly URL → 302 to /designs?cat=drunk-animals
Bookmarkable shortcut + forwards query params so deep links work:
/drunk-animals?sort=newest → /designs?cat=drunk-animals&sort=newest
Smoke-tested locally — 302 Location header correct.
---
server.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/server.js b/server.js
index e1b33fe..5a7f882 100644
--- a/server.js
+++ b/server.js
@@ -2142,6 +2142,13 @@ ${HAMBURGER_JS}
</html>`);
});
+// ── Friendly category URLs — bookmarkable shortcuts to /designs?cat=...
+// Forwards any incoming query (sort/page/motif/hue) so deep links still work.
+app.get('/drunk-animals', (req, res) => {
+ const qs = new URLSearchParams({ cat: 'drunk-animals', ...req.query }).toString();
+ res.redirect(302, '/designs?' + qs);
+});
+
// ── DESIGNS CATALOG (full grid with sort + density + category filter)
app.get('/designs', (req, res) => {
// Conditional GET: emit Last-Modified from the freshest design in the
← d5ea5ad drunk-animals: dedicated motif tagger w/ animal+pose+plant+s
·
back to Wallco Ai
·
/admin/health: extended JSON w/ by-color cache stats (hits/m 01a41fa →