In search queries, replace underscores with spaces
Spaces perform better with the default search engines in both MediaWiki and Dokupull/400/head
parent
d3d8d7e34f
commit
b4e17af2a7
|
@ -356,6 +356,9 @@ async function main(url, tabId) {
|
||||||
article = site['destination_main_page'];
|
article = site['destination_main_page'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Replace underscores with spaces as that performs better in search
|
||||||
|
article = article.replaceAll('_', ' ');
|
||||||
|
|
||||||
let searchParams = '';
|
let searchParams = '';
|
||||||
switch (site['destination_platform']) {
|
switch (site['destination_platform']) {
|
||||||
case 'mediawiki':
|
case 'mediawiki':
|
||||||
|
|
|
@ -294,6 +294,9 @@ function main() {
|
||||||
article = site['destination_main_page'];
|
article = site['destination_main_page'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Replace underscores with spaces as that performs better in search
|
||||||
|
article = article.replaceAll('_', ' ');
|
||||||
|
|
||||||
let searchParams = '';
|
let searchParams = '';
|
||||||
switch (site['destination_platform']) {
|
switch (site['destination_platform']) {
|
||||||
case 'mediawiki':
|
case 'mediawiki':
|
||||||
|
|
|
@ -203,6 +203,9 @@ function replaceSearchResults(searchResultContainer, site, link) {
|
||||||
article = site['destination_main_page'];
|
article = site['destination_main_page'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Replace underscores with spaces as that performs better in search
|
||||||
|
article = article.replaceAll('_', ' ');
|
||||||
|
|
||||||
let searchParams = '';
|
let searchParams = '';
|
||||||
switch (site['destination_platform']) {
|
switch (site['destination_platform']) {
|
||||||
case 'mediawiki':
|
case 'mediawiki':
|
||||||
|
|
Loading…
Reference in New Issue