Adding title param to MediaWiki search + updating Miraheze search endpoint

The title param is needed on some MediaWiki sites
pull/464/head
Kevin Payravi 2024-02-03 20:20:23 -06:00
parent 082d90ad81
commit b81c54fdc7
2 changed files with 17 additions and 17 deletions

View File

@ -36,7 +36,7 @@
"destination_platform": "mediawiki",
"destination_icon": "adventurezonewiki.png",
"destination_main_page": "The_Adventure_Zone_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -57,7 +57,7 @@
"destination_platform": "mediawiki",
"destination_icon": "akudamadrivewiki.png",
"destination_main_page": "Akudama_Drive_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -757,7 +757,7 @@
"destination_platform": "mediawiki",
"destination_icon": "criticalrole.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1308,7 +1308,7 @@
"destination_platform": "mediawiki",
"destination_icon": "findeverythingwiki.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1401,7 +1401,7 @@
"destination_platform": "mediawiki",
"destination_icon": "fromargonaviswiki.png",
"destination_main_page": "from_ARGONAVIS_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1545,7 +1545,7 @@
"destination_platform": "mediawiki",
"destination_icon": "girlslasttourwiki.png",
"destination_main_page": "Girls'_Last_Tour_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1602,7 +1602,7 @@
"destination_platform": "mediawiki",
"destination_icon": "graalmilitarywiki.png",
"destination_main_page": "GraalMilitary_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1857,7 +1857,7 @@
"destination_platform": "mediawiki",
"destination_icon": "houkaigakuen2wiki.png",
"destination_main_page": "Houkai_Gakuen_2_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1878,7 +1878,7 @@
"destination_platform": "mediawiki",
"destination_icon": "hyperrogue.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"official",
"miraheze"
@ -1900,7 +1900,7 @@
"destination_platform": "mediawiki",
"destination_icon": "idolish7.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -1939,7 +1939,7 @@
"destination_platform": "mediawiki",
"destination_icon": "interpalorewiki.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -2167,7 +2167,7 @@
"destination_platform": "mediawiki",
"destination_icon": "lethalcompany.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -2437,7 +2437,7 @@
"destination_platform": "mediawiki",
"destination_icon": "cryptofthenecrodancerwiki.png",
"destination_main_page": "NecroDancer_Wiki:About",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -2650,7 +2650,7 @@
"destination_platform": "mediawiki",
"destination_icon": "pizzatowerwiki.png",
"destination_main_page": "Pizza_Tower_Wiki:Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]
@ -2795,7 +2795,7 @@
"destination_platform": "mediawiki",
"destination_icon": "rainworld.png",
"destination_main_page": "Rain_World_Wiki",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"official",
"miraheze"
@ -3875,7 +3875,7 @@
"destination_platform": "mediawiki",
"destination_icon": "ultrawiki.png",
"destination_main_page": "Main_Page",
"destination_search_path": "/wiki/Special:Search",
"destination_search_path": "/w/index.php",
"tags": [
"miraheze"
]

View File

@ -122,7 +122,7 @@ function commonFunctionGetNewURL(originURL, matchingSite) {
let searchParams = '';
switch (matchingSite['destination_platform']) {
case 'mediawiki':
searchParams = '?search=' + destinationArticle;
searchParams = '?title=Special:Search&search=' + destinationArticle;
break;
case 'doku':
searchParams = 'start?do=search&q=' + destinationArticle;