From 2a167a675d93a0895478bcd2114249eeceb3c429 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sun, 1 Feb 2026 22:42:04 -0800 Subject: [PATCH] fix: use fileURL for static template logo index path (#8539) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fix template logo loading by using `api.fileURL()` instead of `api.fetchApi()` for the static logo index file. ## Problem `fetchLogoIndex()` was using `api.fetchApi('/templates/index_logo.json')` which adds an `/api` prefix to URLs, resulting in requests to `/api/templates/index_logo.json` instead of `/templates/index_logo.json`. Since `/templates/index_logo.json` is a static asset file (not an API endpoint), it should use `api.fileURL()` which doesn't add the `/api` prefix. ## Changes - Change `api.fetchApi('/templates/index_logo.json')` to `fetch(api.fileURL('/templates/index_logo.json'))` ## Testing - Template logos should now load correctly in the workflow template selector dialog Fixes COM-14279 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8539-fix-use-fileURL-for-static-template-logo-index-path-2fb6d73d365081178788dc0cf196ada4) by [Unito](https://www.unito.io) --- .../workflow/templates/repositories/workflowTemplatesStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/workflow/templates/repositories/workflowTemplatesStore.ts b/src/platform/workflow/templates/repositories/workflowTemplatesStore.ts index 463d76ec7..e78fd2278 100644 --- a/src/platform/workflow/templates/repositories/workflowTemplatesStore.ts +++ b/src/platform/workflow/templates/repositories/workflowTemplatesStore.ts @@ -506,7 +506,7 @@ export const useWorkflowTemplatesStore = defineStore( async function fetchLogoIndex(): Promise { try { - const response = await api.fetchApi('/templates/index_logo.json') + const response = await fetch(api.fileURL('/templates/index_logo.json')) const contentType = response.headers.get('content-type') if (!contentType?.includes('application/json')) return {} const data = await response.json()