fix(dashboard): the docs link opens the docs, not a 404
CI / Check (push) Skipped
CI / Check (pull_request) Successful in 6m29s
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (push) Skipped
CI / Check (pull_request) Successful in 6m29s
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
1 parent
12b7e9b6b8
commit
9637d6b554
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user