Fix special characters breaking wiki link urls

This commit is contained in:
DominikDoom
2023-10-06 14:54:29 +02:00
parent 5fd48f53de
commit 44c5450b28
2 changed files with 5 additions and 4 deletions

View File

@@ -680,6 +680,8 @@ function addResultsToList(textArea, results, tagword, resetList) {
linkPart = linkPart.split("[")[0]
}
linkPart = encodeURIComponent(linkPart);
// Set link based on selected file
let tagFileNameLower = tagFileName.toLowerCase();
if (tagFileNameLower.startsWith("danbooru")) {