[object Object]

← back to Glassbeadedwallpaper

Add clean /privacy route/rewrite (AdSense)

5a9051b95b1c200a094d831295f1939addc06077 · 2026-09-10 11:56:24 -0700 · Steve Abrams

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

Files touched

Diff

commit 5a9051b95b1c200a094d831295f1939addc06077
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Sep 10 11:56:24 2026 -0700

    Add clean /privacy route/rewrite (AdSense)
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 server.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server.js b/server.js
index 7d4dd70..233f5cb 100644
--- a/server.js
+++ b/server.js
@@ -115,6 +115,7 @@ const server = http.createServer((req, res) => {
 
     // Resolve against the project root and reject any path that escapes it
     const rootDir = __dirname;
+    if (requestPath === '/privacy') requestPath = '/privacy.html';
     const filePath = path.join(rootDir, requestPath);
     if (filePath !== rootDir && !filePath.startsWith(rootDir + path.sep)) {
         res.writeHead(403, { 'Content-Type': 'text/html' });

← 0674703 Add privacy footer link (AdSense discoverability)  ·  back to Glassbeadedwallpaper  ·  front-page-steward: ux-primitives bundle (silent) TK-12031 6dbe383 →