« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/urls.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/urls.js b/src/util/urls.js
index ad91290..4d099ac 100644
--- a/src/util/urls.js
+++ b/src/util/urls.js
@@ -94,7 +94,9 @@ export function generateURLs(urlSpec) {
             if (device) {
               return value;
             } else {
-              return encodeURIComponent(value);
+              let encoded = encodeURIComponent(value);
+              encoded = encoded.replaceAll('%2F', '/');
+              return encoded;
             }
           } else {
             missing++;