wikibase-sdk icon indicating copy to clipboard operation
wikibase-sdk copied to clipboard

Support non-default script path

Open lucaswerkmeister opened this issue 3 years ago • 1 comments

Currently, the library assumes that the action API endpoint is found under /w/api.php, i.e. that the script path is /w:

https://github.com/maxlath/wikibase-sdk/blob/d04dc7c2eaa3ce7d88a0a1164cddc75907902f70/lib/wikibase-sdk.js#L26-L30

This is not true for all wikis, and I think the library would be more universally useful if it supported other wiki setups as well. (For instance, I have several development wikis locally, with script paths /wiki1, /wiki2, etc.)

lucaswerkmeister avatar May 31 '21 10:05 lucaswerkmeister

Also:

https://github.com/maxlath/wikibase-sdk/blob/d04dc7c2eaa3ce7d88a0a1164cddc75907902f70/lib/queries/get_entity_revision.js#L11

lucaswerkmeister avatar May 31 '21 11:05 lucaswerkmeister

solved by #78

maxlath avatar Nov 02 '22 08:11 maxlath