For MW, redirecting via path instead of query params

pull/148/head
Kevin Payravi 2023-04-25 02:08:12 -04:00
parent ff205bee11
commit 39afc46330
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ async function main(eventInfo, eventName) {
let searchParams = '';
switch (site['destination_platform']) {
case 'mediawiki':
searchParams = '?title=Special:Search&search=' + article;
searchParams = 'Special:Search/' + article;
break;
case 'doku':
searchParams = 'start?do=search&q=' + article;

View File

@ -257,7 +257,7 @@ function main(mutations = null, observer = null) {
let searchParams = '';
switch (site['destination_platform']) {
case 'mediawiki':
searchParams = '?title=Special:Search&search=' + article;
searchParams = 'Special:Search/' + article;
break;
case 'doku':
searchParams = 'start?do=search&q=' + article;