Replacing + with _ for Fextralife wikis
parent
1566f7cbdf
commit
e804c8c18f
|
@ -278,7 +278,8 @@ function main() {
|
||||||
searchParams = 'start?do=search&q=' + article;
|
searchParams = 'start?do=search&q=' + article;
|
||||||
break;
|
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 {
|
} else {
|
||||||
newURL = 'https://' + site["destination_base_url"];
|
newURL = 'https://' + site["destination_base_url"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue