Skip to content

Commit 78bfcbc

Browse files
TuntiiCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent bc137fe commit 78bfcbc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/rustapi-core/src/dashboard/dashboard.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ <h1>RustAPI Dashboard</h1>
350350
<script>
351351
// ── Config ────────────────────────────────────────────────────────────────────
352352
const BASE = window.location.origin;
353-
const API = BASE + '/__rustapi/dashboard/api';
353+
const DASHBOARD_PATH = window.location.pathname.replace(/\/+$/, '');
354+
const API = BASE + (DASHBOARD_PATH || '') + '/api';
354355
const REFRESH_MS = 3000;
355356

356357
// ── State ─────────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)