[object Object]

← back to 1950swallpaper

add clean-URL routes for content pages, remove dead nav links

0c44099e636cb22521c0e7ffbaf0c77b155800e2 · 2026-05-19 08:27:48 -0700 · SteveStudio2

Added Express routes for /care /history /sourcing /trade so the
extension-less nav links resolve (static handler can't serve them
without an extension). Repointed the two dead /about links in
index.html to the existing /history page. Removed the dead
/vocabulary and /about links from the shared footer nav on all
four content pages (no vocabulary.html / about.html exist).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 0c44099e636cb22521c0e7ffbaf0c77b155800e2
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date:   Tue May 19 08:27:48 2026 -0700

    add clean-URL routes for content pages, remove dead nav links
    
    Added Express routes for /care /history /sourcing /trade so the
    extension-less nav links resolve (static handler can't serve them
    without an extension). Repointed the two dead /about links in
    index.html to the existing /history page. Removed the dead
    /vocabulary and /about links from the shared footer nav on all
    four content pages (no vocabulary.html / about.html exist).
    
    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            | 7 +++++++
 6 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/public/care.html b/public/care.html
index 8435ea7..94df6f0 100644
--- a/public/care.html
+++ b/public/care.html
@@ -82,10 +82,8 @@ Regular maintenance, including annual inspections and biannual cleaning
 <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 a76b8d5..31d8808 100644
--- a/public/history.html
+++ b/public/history.html
@@ -54,10 +54,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 c68a762..b10063a 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">1950swallpaper</div>
       <p class="footer-text">1950swallpaper — 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 ac5639b..73512c9 100644
--- a/public/sourcing.html
+++ b/public/sourcing.html
@@ -47,10 +47,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 7b26b10..5cdc8cf 100644
--- a/public/trade.html
+++ b/public/trade.html
@@ -43,10 +43,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 e50304f..48ee6c4 100644
--- a/server.js
+++ b/server.js
@@ -142,6 +142,13 @@ require("./_universal-contact")(app, cfg.contact);
 require("./_universal-auth")(app, cfg.auth);
 app.use(express.static(path.join(__dirname, 'public')));
 
+// Clean-URL routes for extension-less nav links to static content pages.
+for (const page of ['care', 'history', 'sourcing', 'trade']) {
+  app.get('/' + page, (req, res) => {
+    res.sendFile(path.join(__dirname, 'public', page + '.html'));
+  });
+}
+
 app.get('/api/products', (req, res) => {
   const { q, aesthetic, vendor, page = 1, limit = 24, sort = 'newest'} = req.query;
   let list = PRODUCTS_NICHE;

← 16dde5a untrack .bak/.pre- snapshots, add 404-guard middleware  ·  back to 1950swallpaper  ·  add noreferrer to external Facebook link 62b3681 →