From d3174a4ecbe42dee36ab620800d115d198986db6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 9 Sep 2026 22:55:47 +0000 Subject: [PATCH] Rewrite /static/ figure URLs to /steer/static/ for Tailscale Serve. Markdown figures that use root-absolute /static/ paths 404 when only /steer is proxied. Post-process rendered HTML and bump cache-bust to v=17. Co-authored-by: Bill French --- desk/review/static/app.js | 3 ++- desk/review/static/index.html | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/desk/review/static/app.js b/desk/review/static/app.js index c6670d1..7fb77f7 100644 --- a/desk/review/static/app.js +++ b/desk/review/static/app.js @@ -230,7 +230,8 @@ var tok = protectedMd.tokens[i]; html = html.split(tok.key).join(tok.html); } - return html; + // /static/... 404s on Tailscale Serve (/steer only). Rewrite to BASE_PATH. + return html.replace(/(src|href)=("|')\/static\//g, "$1=$2/steer/static/"); } function buildVisibleIndex(src) { diff --git a/desk/review/static/index.html b/desk/review/static/index.html index 77bec95..6a3ed6a 100644 --- a/desk/review/static/index.html +++ b/desk/review/static/index.html @@ -5,15 +5,15 @@ Steer - - + +
Learn mode — sandbox. Nothing writes to the catalog. Back to the desk
- +
Draft
@@ -95,8 +95,8 @@

Sandbox

- - - + + +