Skip to content

Commit

Permalink
Fixed #1157: magnetLink queryString to start with ? and not ?&
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Nov 8, 2024
1 parent 84ebee8 commit 77f4fd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/skin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77f4fd7

Please sign in to comment.