From 7dcf19d9028c27fdfb96fe0788c229908a416e01 Mon Sep 17 00:00:00 2001 From: Benjamin Jesuiter Date: Fri, 9 Jan 2026 12:21:13 +0100 Subject: [PATCH] fix(ui): default to relative paths for control UI assets Changes the default base path from "/" to "./" so the control UI works correctly when served under a custom basePath (e.g., /jbclawd/). Previously, assets were referenced with absolute paths like /assets/..., which failed when the UI was served under a subpath. With relative paths (./assets/...), the browser resolves them relative to the HTML location, making the UI work regardless of the configured basePath. --- ui/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 30dbd25a3..c347c2b0e 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -14,7 +14,7 @@ function normalizeBase(input: string): string { export default defineConfig(({ command }) => { const envBase = process.env.CLAWDBOT_CONTROL_UI_BASE_PATH?.trim(); - const base = envBase ? normalizeBase(envBase) : "/"; + const base = envBase ? normalizeBase(envBase) : "./"; return { base, publicDir: path.resolve(here, "public"),