For MW, redirecting via path instead of query params
parent
ff205bee11
commit
39afc46330
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue