← back to Agedwallpaper
Add clean-URL routes (/about /care /history /sourcing /trade); drop dead /vocabulary links
56360860bf81349095850260e2524c5d5beb1923 · 2026-05-19 07:57:45 -0700 · SteveStudio2
/about maps to history.html (origin-story page). Removed /vocabulary nav links
since no vocabulary page exists.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
M public/care.htmlM public/history.htmlM public/sourcing.htmlM public/trade.htmlM server.js
Diff
commit 56360860bf81349095850260e2524c5d5beb1923
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 19 07:57:45 2026 -0700
Add clean-URL routes (/about /care /history /sourcing /trade); drop dead /vocabulary links
/about maps to history.html (origin-story page). Removed /vocabulary nav links
since no vocabulary page exists.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/care.html | 1 -
public/history.html | 4 +---
public/sourcing.html | 1 -
public/trade.html | 1 -
server.js | 6 ++++++
5 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/public/care.html b/public/care.html
index 2bf6a6f..45293b9 100644
--- a/public/care.html
+++ b/public/care.html
@@ -46,7 +46,6 @@ nav.foot a{margin-right:22px;text-decoration:none}
<nav class="foot">
<a href="/">Browse</a>
<a href="/history">History</a>
-<a href="/vocabulary">Vocabulary</a>
<a href="/sourcing">Sourcing</a>
<a href="/care">Care</a>
<a href="/trade">Trade</a>
diff --git a/public/history.html b/public/history.html
index a397e50..4839465 100644
--- a/public/history.html
+++ b/public/history.html
@@ -33,9 +33,7 @@ nav.foot a{margin-right:22px;text-decoration:none}
<li>17th-century merchant homes in the Low Countries:
<nav class="foot">
<a href="/">Browse</a>
-<a href="/history">History</a>
-<a href="/vocabulary">Vocabulary</a>
-<a href="/sourcing">Sourcing</a>
+<a href="/history">History</a><a href="/sourcing">Sourcing</a>
<a href="/care">Care</a>
<a href="/trade">Trade</a>
<a href="/about">About</a>
diff --git a/public/sourcing.html b/public/sourcing.html
index e586d75..6b714b7 100644
--- a/public/sourcing.html
+++ b/public/sourcing.html
@@ -52,7 +52,6 @@ nav.foot a{margin-right:22px;text-decoration:none}
<nav class="foot">
<a href="/">Browse</a>
<a href="/history">History</a>
-<a href="/vocabulary">Vocabulary</a>
<a href="/sourcing">Sourcing</a>
<a href="/care">Care</a>
<a href="/trade">Trade</a>
diff --git a/public/trade.html b/public/trade.html
index ebdb3a4..0f16e60 100644
--- a/public/trade.html
+++ b/public/trade.html
@@ -46,7 +46,6 @@ nav.foot a{margin-right:22px;text-decoration:none}
<nav class="foot">
<a href="/">Browse</a>
<a href="/history">History</a>
-<a href="/vocabulary">Vocabulary</a>
<a href="/sourcing">Sourcing</a>
<a href="/care">Care</a>
<a href="/trade">Trade</a>
diff --git a/server.js b/server.js
index b380c1d..08a8274 100644
--- a/server.js
+++ b/server.js
@@ -141,6 +141,12 @@ app.use((req, res, next) => {
});
app.use(express.static(path.join(__dirname, 'public')));
+// Clean-URL routes for extension-less nav links → static pages.
+const CLEAN_PAGES = { care: 'care.html', history: 'history.html', sourcing: 'sourcing.html', trade: 'trade.html', about: 'history.html' };
+for (const [route, file] of Object.entries(CLEAN_PAGES)) {
+ 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;
← c064454 Untrack snapshot backups; ignore *.bak/*.pre-*; 404-guard st
·
back to Agedwallpaper
·
Add noreferrer to external _blank links (Facebook anchor + w 0785abc →