← back to 1970swallpaper
feat: clean-URL routes for static pages + remove dead nav links
822983054083a2c904954b3f25f73136e167afef · 2026-05-19 08:32:31 -0700 · SteveStudio2
- added /care /history /sourcing /trade routes serving the existing .html pages
- removed dead /about links (no about.html, no route) from index + 4 static pages
- removed dead /vocabulary links (no target page) from 4 static pages
- index nav + footer now point at /history instead of the dead /about
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
M public/care.htmlM public/history.htmlM public/index.htmlM public/sourcing.htmlM public/trade.htmlM server.js
Diff
commit 822983054083a2c904954b3f25f73136e167afef
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Tue May 19 08:32:31 2026 -0700
feat: clean-URL routes for static pages + remove dead nav links
- added /care /history /sourcing /trade routes serving the existing .html pages
- removed dead /about links (no about.html, no route) from index + 4 static pages
- removed dead /vocabulary links (no target page) from 4 static pages
- index nav + footer now point at /history instead of the dead /about
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/care.html | 2 --
public/history.html | 2 --
public/index.html | 4 ++--
public/sourcing.html | 2 --
public/trade.html | 2 --
server.js | 5 +++++
6 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/public/care.html b/public/care.html
index f997862..908328f 100644
--- a/public/care.html
+++ b/public/care.html
@@ -46,10 +46,8 @@ 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
diff --git a/public/history.html b/public/history.html
index 2c5bd0f..6a5b6fc 100644
--- a/public/history.html
+++ b/public/history.html
@@ -42,10 +42,8 @@ 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
diff --git a/public/index.html b/public/index.html
index eaa809f..bdf6212 100644
--- a/public/index.html
+++ b/public/index.html
@@ -241,7 +241,7 @@ textarea:focus-visible,
</a>
<nav class="ns-nav" id="nsPrimaryNav" aria-label="Primary">
<a href="/">Home</a>
- <a href="/about">About</a>
+ <a href="/history">History</a>
<button type="button" onclick="nsContactOpen()">Contact</button>
</nav>
<button type="button" class="mobile-toggle" aria-label="Toggle menu" aria-controls="nsPrimaryNav" aria-expanded="false" onclick="nsToggleNav(this)">
@@ -341,7 +341,7 @@ textarea:focus-visible,
<div>
<div class="footer-brand">1970swallpaper</div>
<p class="footer-text">Studio Castel — real samples ship free.</p>
- <p class="footer-text" style="margin-top:14px;font-size:11px;letter-spacing:0.18em;text-transform:uppercase;font-weight:600;color:var(--paper);opacity:0.7"><a href="/about" style="color:inherit;text-decoration:none;border-bottom:1px solid var(--accent)">About →</a></p>
+ <p class="footer-text" style="margin-top:14px;font-size:11px;letter-spacing:0.18em;text-transform:uppercase;font-weight:600;color:var(--paper);opacity:0.7"><a href="/history" style="color:inherit;text-decoration:none;border-bottom:1px solid var(--accent)">History →</a></p>
</div>
<div class="footer-col">
<h4>Aesthetic</h4>
diff --git a/public/sourcing.html b/public/sourcing.html
index 6a4df23..5502dd7 100644
--- a/public/sourcing.html
+++ b/public/sourcing.html
@@ -37,10 +37,8 @@ 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
diff --git a/public/trade.html b/public/trade.html
index 7a9e014..47dac38 100644
--- a/public/trade.html
+++ b/public/trade.html
@@ -51,10 +51,8 @@ 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
diff --git a/server.js b/server.js
index aaea593..a9a8714 100644
--- a/server.js
+++ b/server.js
@@ -146,6 +146,11 @@ app.use((req, res, next) => {
app.use(express.static(path.join(__dirname, 'public')));
+// Clean-URL routes for extension-less nav links → existing static pages.
+for (const slug of ['care', 'history', 'sourcing', 'trade']) {
+ app.get('/' + slug, (req, res) => res.sendFile(path.join(__dirname, 'public', slug + '.html')));
+}
+
app.get('/api/products', (req, res) => {
const { q, aesthetic, vendor, page = 1, limit = 24, sort = 'newest'} = req.query;
let list = PRODUCTS_NICHE;
← 8e7780d chore: untrack snapshot backups + 404-guard against serving
·
back to 1970swallpaper
·
fix: add noopener noreferrer to external _blank links 6700815 →