This places the string 'clamav' in the context position, where a journal context should be provided. (URL construction is index.php/context/page/op/etc).
This works for now because nothing is interrogating the context within the custom page handler or call stack, but will fail if/when this occurs.
For reasons unclear to me, the seemingly plausible fix of:
$this->setData('pluginAjaxUrl', $request->getRouter()->url($request, null, 'clamavVersion'));
does not work. Hrm.
The AJAX URL is constructed here: https://github.com/ulsdevteam/pkp-clamav/blob/e618fcb771a45938bdc7a3e4c3487fce9bc05dfe/ClamavSettingsForm.inc.php#L50 and here: https://github.com/ulsdevteam/pkp-clamav/blob/e618fcb771a45938bdc7a3e4c3487fce9bc05dfe/ClamavSettingsForm.inc.php#L63
This places the string 'clamav' in the context position, where a journal context should be provided. (URL construction is
index.php/context/page/op/etc
).This works for now because nothing is interrogating the context within the custom page handler or call stack, but will fail if/when this occurs.