Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions public_html/resources/vue/typeahead-search.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@
me.results = [] ;

let language = me.getLanguage() ;

// let wd_api_base = 'https://www.wikidata.org/w/' ;
let wd_api_base = '/w/' ;

if ( me.fulltext ) {

$.getJSON ( 'https://www.wikidata.org/w/api.php?callback=?' , {
$.getJSON ( wd_api_base + 'api.php?callback=?' , {
action:'query',
list:'search',
srnamespace:(me.type=='property'?120:0), // TODO lexemes'n'stuff
Expand All @@ -132,7 +135,7 @@

} else {

$.getJSON ( 'https://www.wikidata.org/w/api.php?callback=?' , {
$.getJSON ( wd_api_base + 'api.php?callback=?' , {
action:'wbsearchentities',
language:language,
type:(me.type||'item'),
Expand Down