Replacing + with _ for Fextralife wikis
parent
1566f7cbdf
commit
e804c8c18f
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue