From 94febb5cdc96c041603266ae934330a0bbc773ae Mon Sep 17 00:00:00 2001 From: Test Date: Sun, 22 Mar 2026 09:27:09 +0100 Subject: [PATCH] fix(serve): proper /embed/* path prefix for sidebar-free layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The middleware now strips /embed prefix from the URI path before routing, so /embed/stats → embed_layout(stats_view), /embed/stpa → embed_layout(stpa_view). No route duplication needed — same handlers, different layout wrapping. This avoids the ?embed=1 query param which VS Code's asExternalUri URL-encodes to ?embed%3D1, breaking the middleware detection. Verified: /embed/stats returns 0