At the moment it seems to be doing only prefix search. If a category is Foo Bar Baz, it should show up in the suggestions when the user types Bar
Changing
|
async function searchCategories( api, query ) { |
|
const data = await fetchApiData( |
|
api, |
|
{ |
|
action: 'query', |
|
list: 'allcategories', |
|
acprefix: query, |
|
aclimit: 50 |
|
}, |
|
'query.allcategories' |
|
); |
Using the search API might be better (#56 (comment))
At the moment it seems to be doing only prefix search. If a category is
Foo Bar Baz, it should show up in the suggestions when the user typesBarChanging
Rules/modules/ext.rules/utils/api.js
Lines 48 to 58 in 0ab4c6f
Using the search API might be better (#56 (comment))