mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-30 21:09:53 +00:00
Use relative url path for reverse proxy hosting on template thumbnails (#2959)
This commit is contained in:
@@ -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}` : ''
|
||||
|
||||
Reference in New Issue
Block a user