From 48d498941e92f9e9f9b51381d75d65f7b62da5f9 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 29 Apr 2021 19:53:43 +0200 Subject: [PATCH] fix url for image replacement, too --- htdocs/lib/settings/ImageUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/settings/ImageUpload.js b/htdocs/lib/settings/ImageUpload.js index d7c0c18..c158342 100644 --- a/htdocs/lib/settings/ImageUpload.js +++ b/htdocs/lib/settings/ImageUpload.js @@ -49,7 +49,7 @@ $.fn.imageUpload = function() { contentType: 'application/octet-stream', }).done(function(data){ $input.val(data.file); - $img.prop('src', '/imageupload?file=' + data.file); + $img.prop('src', '../imageupload?file=' + data.file); clearError(); }).fail(function(xhr, error){ try {