From b5cd8a8ffb01e2d982658096c3b1d64de13d5441 Mon Sep 17 00:00:00 2001 From: Chris Pinkham Date: Sun, 3 Dec 2023 15:52:50 -0800 Subject: [PATCH] Need to replace all occurrences, not just the first. Fixes #1688 --- www/js/fpp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/fpp.js b/www/js/fpp.js index 887c4947f..98c05f77a 100644 --- a/www/js/fpp.js +++ b/www/js/fpp.js @@ -4999,7 +4999,7 @@ function DownloadZip(dir) { } function ViewImage(file) { - var url = "api/file/Images/" + encodeURIComponent(file).replace('%2F','/'); + var url = "api/file/Images/" + encodeURIComponent(file).replaceAll('%2F','/'); ViewFileImpl(url, file, "

Click image to display full size.
"); }