Replacing + with _ for Fextralife wikis

pull/227/head
Kevin Payravi 2023-09-07 01:27:07 -05:00
parent 1566f7cbdf
commit e804c8c18f
1 changed files with 2 additions and 1 deletions

View File

@ -278,7 +278,8 @@ function main() {
searchParams = 'start?do=search&q=' + article;
break;
}
newURL = 'https://' + site["destination_base_url"] + site["destination_content_path"] + searchParams;
newURL = 'https://' + site["destination_base_url"] + site["destination_content_path"] + searchParams.replaceAll('+', '_');
// We replace plus signs with underscores since Fextralife uses pluses instead of spaces/underscores
} else {
newURL = 'https://' + site["destination_base_url"];
}