[object Object]

← back to Agent Cabinet

redirect /pyramid.html and /pyramid/ to canonical /pyramid (301)

6f9f1ff70b5b86c98c87c297e0ca2db759ef9fb5 · 2026-06-18 18:54:11 -0700 · SteveStudio2

Files touched

Diff

commit 6f9f1ff70b5b86c98c87c297e0ca2db759ef9fb5
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Thu Jun 18 18:54:11 2026 -0700

    redirect /pyramid.html and /pyramid/ to canonical /pyramid (301)
---
 server.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 634824b..47dde98 100644
--- a/server.js
+++ b/server.js
@@ -762,7 +762,12 @@ const server = http.createServer((req, res) => {
   const q = u.searchParams;
   const J = (obj) => { res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(obj)); };
 
-  if (u.pathname === '/pyramid' || u.pathname === '/pyramid/') {
+  if (u.pathname === '/pyramid.html' || u.pathname === '/pyramid/') {
+    res.writeHead(301, { Location: '/pyramid' });
+    res.end();
+    return;
+  }
+  if (u.pathname === '/pyramid') {
     try {
       res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
       res.end(fs.readFileSync(path.join(ROOT, 'pyramid.html'), 'utf8'));

← 281dc4a pyramid: fix P0 UI/UX (a11y + drawer focus + double-write gu  ·  back to Agent Cabinet  ·  calmer overlay defaults (Shared+Suggested off) with localSto 183cbbf →