← back to 1940swallpaper
Add clean-URL routes, remove dead /about link, fix rel attr
a7db88b00df6ab204b69ad5f674d98425845782c · 2026-05-19 08:26:35 -0700 · SteveStudio2
- Added clean-URL Express routes for /care /history /sourcing
/trade /vocabulary so extension-less nav links resolve.
- Removed the dead /about nav link (no about.html exists) from
all 5 content pages; repointed the index nav + footer About
links to /history (a real page).
- Added noreferrer to the Facebook target=_blank link that had
only noopener.
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 public/vocabulary.htmlM server.js
Diff
commit a7db88b00df6ab204b69ad5f674d98425845782c
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Tue May 19 08:26:35 2026 -0700
Add clean-URL routes, remove dead /about link, fix rel attr
- Added clean-URL Express routes for /care /history /sourcing
/trade /vocabulary so extension-less nav links resolve.
- Removed the dead /about nav link (no about.html exists) from
all 5 content pages; repointed the index nav + footer About
links to /history (a real page).
- Added noreferrer to the Facebook target=_blank link that had
only noopener.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/care.html | 1 -
public/history.html | 1 -
public/index.html | 6 +++---
public/sourcing.html | 1 -
public/trade.html | 1 -
public/vocabulary.html | 1 -
server.js | 7 +++++++
7 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/public/care.html b/public/care.html
index f39ed62..38e64e7 100644
--- a/public/care.html
+++ b/public/care.html
@@ -50,6 +50,5 @@ nav.foot a{margin-right:22px;text-decoration:none}
<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 8f2fe16..fdb0c0a 100644
--- a/public/history.html
+++ b/public/history.html
@@ -42,6 +42,5 @@ nav.foot a{margin-right:22px;text-decoration:none}
<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 3f154cf..acea917 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">1940swallpaper</div>
<p class="footer-text">1940swallpaper — 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>
@@ -356,7 +356,7 @@ textarea:focus-visible,
<div class="footer-col">
<h4>Social</h4>
- <a class="fb-link" href="https://www.facebook.com/SteveAbramsDesigns.DesignerWallcoverings" target="_blank" rel="noopener">Facebook</a>
+ <a class="fb-link" href="https://www.facebook.com/SteveAbramsDesigns.DesignerWallcoverings" target="_blank" rel="noopener noreferrer">Facebook</a>
</div>
</div>
<div class="footer-bottom">
diff --git a/public/sourcing.html b/public/sourcing.html
index 00cebff..a41743c 100644
--- a/public/sourcing.html
+++ b/public/sourcing.html
@@ -52,6 +52,5 @@ nav.foot a{margin-right:22px;text-decoration:none}
<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 ad24cb2..78c0d2b 100644
--- a/public/trade.html
+++ b/public/trade.html
@@ -47,6 +47,5 @@ nav.foot a{margin-right:22px;text-decoration:none}
<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/vocabulary.html b/public/vocabulary.html
index 2f7ccc9..972d825 100644
--- a/public/vocabulary.html
+++ b/public/vocabulary.html
@@ -32,6 +32,5 @@ nav.foot a{margin-right:22px;text-decoration:none}
<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 ae3ee28..2aa35e0 100644
--- a/server.js
+++ b/server.js
@@ -191,6 +191,13 @@ app.get('/sample/:handle', (req, res) => {
res.redirect(302, p.product_url || `${DW_SHOPIFY}/products/${encodeURIComponent(p.handle)}#sample`);
});
+// Clean-URL routes for extension-less nav links to static content pages.
+for (const page of ['care', 'history', 'sourcing', 'trade', 'vocabulary']) {
+ app.get('/' + page, (req, res) => {
+ res.sendFile(path.join(__dirname, 'public', page + '.html'));
+ });
+}
+
// sitemap.xml + robots.txt for SEO
app.get('/robots.txt', (req, res) => {
res.type('text/plain').send(`User-agent: *
← aaffdb5 Fix facets total, untrack snapshot files, add .bak 404-guard
·
back to 1940swallpaper
·
stage2: wire microsite catalog + admin CRUD + grid/list view 9735140 →