mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
fix(control-ui): resolve header logo when gateway.controlUi.basePath is set (#7178)
* fix(control-ui): resolve header logo when gateway.controlUi.basePath is set * refactor(control-ui): header logo under basePath; normalize logo URL with normalizeBasePath
This commit is contained in:
@@ -52,7 +52,7 @@ import {
|
||||
updateSkillEnabled,
|
||||
} from "./controllers/skills.ts";
|
||||
import { icons } from "./icons.ts";
|
||||
import { TAB_GROUPS, subtitleForTab, titleForTab } from "./navigation.ts";
|
||||
import { normalizeBasePath, TAB_GROUPS, subtitleForTab, titleForTab } from "./navigation.ts";
|
||||
import { ConfigUiHints } from "./types.ts";
|
||||
import { renderAgents } from "./views/agents.ts";
|
||||
import { renderChannels } from "./views/channels.ts";
|
||||
@@ -98,6 +98,8 @@ export function renderApp(state: AppViewState) {
|
||||
const showThinking = state.onboarding ? false : state.settings.chatShowThinking;
|
||||
const assistantAvatarUrl = resolveAssistantAvatarUrl(state);
|
||||
const chatAvatarUrl = state.chatAvatarUrl ?? assistantAvatarUrl ?? null;
|
||||
const logoBase = normalizeBasePath(state.basePath);
|
||||
const logoHref = logoBase ? `${logoBase}/favicon.svg` : "/favicon.svg";
|
||||
const configValue =
|
||||
state.configForm ?? (state.configSnapshot?.config as Record<string, unknown> | null);
|
||||
const resolvedAgentId =
|
||||
@@ -124,7 +126,7 @@ export function renderApp(state: AppViewState) {
|
||||
</button>
|
||||
<div class="brand">
|
||||
<div class="brand-logo">
|
||||
<img src="/favicon.svg" alt="OpenClaw" />
|
||||
<img src="${logoHref}" alt="OpenClaw" />
|
||||
</div>
|
||||
<div class="brand-text">
|
||||
<div class="brand-title">OPENCLAW</div>
|
||||
|
||||
Reference in New Issue
Block a user