From 26b479f4d629decd095a461f2fb93a4f6178e46a Mon Sep 17 00:00:00 2001 From: Pascal Date: Mon, 7 Sep 2026 08:33:00 +0200 Subject: [PATCH] ui : resolve bundled icon paths against the app base path Serve the recommended MCP server favicons and the Hugging Face badge from the app's base path, not the domain root, so they resolve when the app is mounted under a path. Also normalizes the safe HTML config indentation. Assisted-by: pi:GLM-5.3-Flash --- .../constants/recommended-mcp-servers.constants.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/ui/src/lib/constants/recommended-mcp-servers.constants.ts b/tools/ui/src/lib/constants/recommended-mcp-servers.constants.ts index 6a550ee969..ed69dc0af8 100644 --- a/tools/ui/src/lib/constants/recommended-mcp-servers.constants.ts +++ b/tools/ui/src/lib/constants/recommended-mcp-servers.constants.ts @@ -1,3 +1,4 @@ +import { base } from '$app/paths'; import type { RecommendedMCPServer } from '$lib/types'; // Suggested MCP servers shown as opt-in cards in the "Add New Server" dialog. @@ -7,22 +8,22 @@ import type { RecommendedMCPServer } from '$lib/types'; export const RECOMMENDED_MCP_SERVERS: RecommendedMCPServer[] = [ { description: 'Search the web and fetch full page content as clean markdown.', - iconUrl: '/recommended-mcp/exa.ico', + iconUrl: `${base}/recommended-mcp/exa.ico`, id: 'exa', name: 'Exa', url: 'https://mcp.exa.ai/mcp' }, { description: 'Search and browse AI models, datasets, spaces, and docs on the Hugging Face Hub.', - iconUrl: '/recommended-mcp/huggingface.ico', + iconUrl: `${base}/recommended-mcp/huggingface.ico`, id: 'huggingface', name: 'Hugging Face', url: 'https://huggingface.co/mcp' }, { description: 'Search repositories, issues, pull requests and interact with code on GitHub.', - iconUrlDark: '/recommended-mcp/github-dark.png', - iconUrlLight: '/recommended-mcp/github-light.png', + iconUrlDark: `${base}/recommended-mcp/github-dark.png`, + iconUrlLight: `${base}/recommended-mcp/github-light.png`, id: 'github', name: 'GitHub', needsAuthorization: true, @@ -30,7 +31,7 @@ export const RECOMMENDED_MCP_SERVERS: RecommendedMCPServer[] = [ }, { description: 'Browse up-to-date documentation and code examples for libraries and frameworks.', - iconUrl: '/recommended-mcp/context7.png', + iconUrl: `${base}/recommended-mcp/context7.png`, id: 'context7', name: 'Context7', url: 'https://mcp.context7.com/mcp'