fix(search): 🐛 correct URL for MediaSearch

Somehow it has to have the type parameter or it'll just go directly to a page if exists
This commit is contained in:
alistair3149 2022-12-17 22:44:36 -05:00 committed by GitHub
parent 5946089cbb
commit 2e9dffb7f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -421,7 +421,7 @@ function updateTypeahead( messages ) {
if ( config.isMediaSearchExtensionEnabled ) {
updateToolItem( {
id: 'mediasearch',
link: `${config.wgScriptPath}/index.php?title=Special:MediaSearch&search=`,
link: `${config.wgScriptPath}/index.php?title=Special:MediaSearch&type=image&search=`,
icon: 'imageGallery',
msg: 'citizen-search-mediasearch'
} );