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
No known key found for this signature in database
GPG Key ID: 447475A4CFBA2E24

View File

@ -238,7 +238,8 @@
let finalValue = (keysToURIEncode.indexOf(key) >= 0) ? encodeURIComponent(value) : value; let finalValue = (keysToURIEncode.indexOf(key) >= 0) ? encodeURIComponent(value) : value;
output += `&${key}=${finalValue}`; 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) /* hack for library.kiwix.org magnet links (created by MirrorBrain)