← back to 1930swallpaper
fix: add clean-URL routes for /history /care /sourcing /trade nav links, remove dead /vocabulary link (no page exists)
4885af33ee3aca74dd3f0098b21fc9dab3f4f9ed · 2026-05-19 08:26:50 -0700 · SteveStudio2
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 4885af33ee3aca74dd3f0098b21fc9dab3f4f9ed
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 19 08:26:50 2026 -0700
fix: add clean-URL routes for /history /care /sourcing /trade nav links, remove dead /vocabulary link (no page exists)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/care.html | 3 +--
public/history.html | 3 +--
public/sourcing.html | 3 +--
public/trade.html | 3 +--
server.js | 6 +++++-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/public/care.html b/public/care.html
index 2c394e9..20c5bcb 100644
--- a/public/care.html
+++ b/public/care.html
@@ -49,10 +49,9 @@ 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>
<a href="/about">About</a>
</nav>
-</div></body></html>
\ No newline at end of file
+</div></body></html>
diff --git a/public/history.html b/public/history.html
index b21cb3b..d17231c 100644
--- a/public/history.html
+++ b/public/history.html
@@ -42,10 +42,9 @@ 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>
<a href="/about">About</a>
</nav>
-</div></body></html>
\ No newline at end of file
+</div></body></html>
diff --git a/public/sourcing.html b/public/sourcing.html
index f7c965a..9d6c5ad 100644
--- a/public/sourcing.html
+++ b/public/sourcing.html
@@ -48,10 +48,9 @@ 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>
<a href="/about">About</a>
</nav>
-</div></body></html>
\ No newline at end of file
+</div></body></html>
diff --git a/public/trade.html b/public/trade.html
index bcf3101..1e053a9 100644
--- a/public/trade.html
+++ b/public/trade.html
@@ -43,10 +43,9 @@ 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>
<a href="/about">About</a>
</nav>
-</div></body></html>
\ No newline at end of file
+</div></body></html>
diff --git a/server.js b/server.js
index f3be795..6870882 100644
--- a/server.js
+++ b/server.js
@@ -148,7 +148,11 @@ app.use((req, res, next) => {
app.use(express.static(path.join(__dirname, 'public')));
-// Clean-URL route — /about maps to the short-history page (no about.html exists).
+// Clean-URL routes for extension-less nav links.
+['history', 'care', 'sourcing', 'trade'].forEach(slug => {
+ app.get('/' + slug, (req, res) => res.sendFile(path.join(__dirname, 'public', slug + '.html')));
+});
+// /about maps to the short-history page (no about.html exists).
app.get('/about', (req, res) => res.sendFile(path.join(__dirname, 'public', 'history.html')));
app.get('/api/products', (req, res) => {
← 398d6d1 fix: add rel=noopener noreferrer to external Facebook link
·
back to 1930swallpaper
·
stage2: wire microsite catalog + admin CRUD + grid/list view 6265854 →