[object Object]

← back to Hospitalitywallcoverings

add clean-URL route for /about (redirects to home until about page is authored)

7e7189232ea5f0990a159647390f93ab2ba90089 · 2026-05-25 21:12:29 -0700 · Steve Abrams

Files touched

Diff

commit 7e7189232ea5f0990a159647390f93ab2ba90089
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon May 25 21:12:29 2026 -0700

    add clean-URL route for /about (redirects to home until about page is authored)
---
 server.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server.js b/server.js
index 91f70de..bfd6835 100644
--- a/server.js
+++ b/server.js
@@ -216,6 +216,10 @@ 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 — no dedicated /about page
+// exists in this site, so redirect Home until one is authored.
+app.get('/about', (req, res) => res.redirect(302, '/'));
+
 // sitemap.xml + robots.txt for SEO
 app.get('/robots.txt', (req, res) => {
   res.type('text/plain').send(`User-agent: *

← 1373dbd /api/facets total now reflects filtered (niche) list, not ra  ·  back to Hospitalitywallcoverings  ·  hospitalitywallcoverings: commit config-rails fix — aspirati c3e97d9 →