From 9637d6b554c544e02cd4cbdf8e11d597331e655e Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:33:57 +0200 Subject: [PATCH] fix(dashboard): the docs link opens the docs, not a 404 The sidebar linked /docs, but the docs route matches /docs/*, so the link reached the dashboard and its "route not found" page. The default DOCS_URL (Dockerfile and sidebar fallback) is now /docs/. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p --- Dockerfile.dashboard | 4 +++- compliance-dashboard/src/components/sidebar.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dashboard b/Dockerfile.dashboard index ac4c641..6c6567e 100644 --- a/Dockerfile.dashboard +++ b/Dockerfile.dashboard @@ -2,7 +2,9 @@ FROM rust:1.94-bookworm AS builder RUN cargo install dioxus-cli --version 0.7.3 --locked -ARG DOCS_URL=/docs +# The docs site, served at /docs/ on the dashboard host. Keep the trailing +# slash: the orca route matches /docs/*, so plain /docs reaches the dashboard. +ARG DOCS_URL=/docs/ # Legal pages linked from the sidebar; the defaults are breakpilot.com's. ARG IMPRINT_URL=https://breakpilot.com/impressum ARG PRIVACY_URL=https://breakpilot.com/datenschutz diff --git a/compliance-dashboard/src/components/sidebar.rs b/compliance-dashboard/src/components/sidebar.rs index 49957ca..f2a1b34 100644 --- a/compliance-dashboard/src/components/sidebar.rs +++ b/compliance-dashboard/src/components/sidebar.rs @@ -89,7 +89,9 @@ pub fn Sidebar() -> Element { }, ]; - let docs_url = option_env!("DOCS_URL").unwrap_or("/docs"); + // With the trailing slash: the docs route matches /docs/*, and a plain + // /docs lands on the dashboard's "route not found" page. + let docs_url = option_env!("DOCS_URL").unwrap_or("/docs/"); let sidebar_class = if collapsed() { "sidebar collapsed"