diff --git a/web/comfyui-custom.html b/web/comfyui-custom.html
index 061ef168e..01c7d65e8 100644
--- a/web/comfyui-custom.html
+++ b/web/comfyui-custom.html
@@ -170,6 +170,7 @@
diff --git a/web/scripts/app.js b/web/scripts/app.js
index abd090c4d..0b93c791f 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -1371,9 +1371,13 @@ export class ComfyApp {
}
if(filename) {
- const imageDisplay = document.getElementById('image-link');
- imageDisplay.href = `/output/${filename}`;
- imageDisplay.download = `${filename}`;
+ const imageDisplay = document.getElementById('output-image');
+ imageDisplay.src = `/view?filename=${filename}&subfolder=&type=output&rand=${Math.random()}`;
+ imageDisplay.style.display = 'block';
+
+ const imageLink = document.getElementById('image-link');
+ imageLink.href = `/view?filename=${filename}&subfolder=&type=output&rand=${Math.random()}`;
+ imageLink.download = `${filename}`;
const progressText = document.getElementById('progress-text');
progressText.textContent = "executed";