diff --git a/public/static/js/communities/community_members.js b/public/static/js/communities/community_members.js index 3d20068..6a3ecd2 100644 --- a/public/static/js/communities/community_members.js +++ b/public/static/js/communities/community_members.js @@ -6,7 +6,7 @@ }); element.addEventListener('search', RVR.debounce(async function (e) { - RVR.httpRequest('GET', `/searchUser?q=${encodeURIComponent(e.detail.value)}`, function () { + RVR.httpRequest('GET', searchUserUrl.replace('QUERY', encodeURIComponent(e.detail.value)), function () { choices.setChoices(this.response.results, 'value', 'label', true); }); })); diff --git a/views/communities/community_members.php b/views/communities/community_members.php index 7257fce..5db0fbb 100644 --- a/views/communities/community_members.php +++ b/views/communities/community_members.php @@ -34,6 +34,7 @@ @section(pageScript)