Fixed #1157: magnetLink queryString to start with ? and not ?&

This commit is contained in:
rgaudin
2024-11-08 14:58:28 +00:00
parent 84ebee899c
commit 77f4fd7447

View File

@@ -238,7 +238,8 @@
let finalValue = (keysToURIEncode.indexOf(key) >= 0) ? encodeURIComponent(value) : value;
output += `&${key}=${finalValue}`;
}
return output;
// exclude first char so the first params are not prefixed with &
return output.substring(1);
}
/* hack for library.kiwix.org magnet links (created by MirrorBrain)