During the check to RepoHooks::onApiCheckCanExecute there is a call to the function ApiBase::getTitleOrPageId and that call uses the value for the key 'title' from extractRequestParams, which contains values for a sitelink as they uses 'site' and 'title' -pairs. This happens for all modules subclassing from ApiModifyBase.
One solution could be to override the getTitleOrPageId to act correctly in our cases, that is set up a similar method in ApiModifyBase.
Version: unspecified
Severity: minor