From abe475490478b0bc66dfd8f2cda2c45d15d269cb Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 10 Mar 2025 10:13:41 -0400 Subject: [PATCH] Use relative url path for reverse proxy hosting on template thumbnails (#2959) --- src/components/templates/TemplateWorkflowCard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/templates/TemplateWorkflowCard.vue b/src/components/templates/TemplateWorkflowCard.vue index f05050a48..35d1a48ec 100644 --- a/src/components/templates/TemplateWorkflowCard.vue +++ b/src/components/templates/TemplateWorkflowCard.vue @@ -103,8 +103,8 @@ const isHovered = useElementHover(cardRef) const getThumbnailUrl = (index = '') => { const basePath = sourceModule === 'default' - ? `/templates/${template.name}` - : `/api/workflow_templates/${sourceModule}/${template.name}` + ? `templates/${template.name}` + : `api/workflow_templates/${sourceModule}/${template.name}` // For templates from custom nodes, multiple images is not yet supported const indexSuffix = sourceModule === 'default' && index ? `-${index}` : ''