← back to Linenwallpaper
add clean-URL routes for nav links — /history /vocabulary /sourcing /care /trade
ded12abe24b771865f921dd0b72689b44b84a9a4 · 2026-05-25 21:15:25 -0700 · Steve Abrams
Files touched
Diff
commit ded12abe24b771865f921dd0b72689b44b84a9a4
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 25 21:15:25 2026 -0700
add clean-URL routes for nav links — /history /vocabulary /sourcing /care /trade
---
server.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/server.js b/server.js
index 0161592..edffb58 100644
--- a/server.js
+++ b/server.js
@@ -198,6 +198,11 @@ app.get('/sample/:handle', (req, res) => {
// /about → served by the "short history" page (no dedicated about.html exists)
app.get('/about', (req, res) => res.sendFile(path.join(__dirname, 'public', 'history.html')));
+// Clean-URL routes for extension-less nav links (history/vocabulary/sourcing/care/trade)
+for (const slug of ['history', 'vocabulary', 'sourcing', 'care', 'trade']) {
+ app.get('/' + slug, (req, res) => res.sendFile(path.join(__dirname, 'public', slug + '.html')));
+}
+
// sitemap.xml + robots.txt for SEO
app.get('/robots.txt', (req, res) => {
res.type('text/plain').send(`User-agent: *
← e13d761 add 404-guard for .bak/.pre-* files — defense-in-depth again
·
back to Linenwallpaper
·
remove p.vendor render from Ideas rail card — replace with D 822b5f3 →