← back to Jutewallpaper
fix: add /about and clean-URL routes so dead nav link resolves to content pages
c5901edc4ee1692d6b6de7a0639191fd864a9452 · 2026-05-18 20:53:57 -0700 · Steve Abrams
Files touched
Diff
commit c5901edc4ee1692d6b6de7a0639191fd864a9452
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 18 20:53:57 2026 -0700
fix: add /about and clean-URL routes so dead nav link resolves to content pages
---
server.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/server.js b/server.js
index c10cbc1..0a9b36d 100644
--- a/server.js
+++ b/server.js
@@ -140,6 +140,20 @@ require('./_universal-auth')(app, { siteName: "jutewallpaper" });
app.use(express.static(path.join(__dirname, 'public')));
+// Clean-URL routes for static content pages (no .html extension).
+// /about points at the history page so the header nav link resolves.
+const PAGE_ROUTES = {
+ '/about': 'history.html',
+ '/history': 'history.html',
+ '/care': 'care.html',
+ '/sourcing': 'sourcing.html',
+ '/trade': 'trade.html',
+ '/vocabulary': 'vocabulary.html',
+};
+for (const [route, file] of Object.entries(PAGE_ROUTES)) {
+ app.get(route, (req, res) => res.sendFile(path.join(__dirname, 'public', file)));
+}
+
app.get('/api/products', (req, res) => {
const { q, aesthetic, vendor, page = 1, limit = 24, sort = 'newest'} = req.query;
let list = PRODUCTS_NICHE;
← 9f560c1 untrack stale .bak/.pre-* snapshot files and ignore the patt
·
back to Jutewallpaper
·
stage2: wire microsite catalog + admin CRUD + grid/list view 1e3fab4 →