diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index 31a1dd916..4d4a1c1b7 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -262,7 +262,7 @@ const serverRequest = async (endpoint, options = {}) => { ) { mode = 'sendToProxy'; // url.search automatically includes the ? part - const search = url.search ? `${url.search}` : ''; + const search = url.search || ''; // strip first slash const endpointWithQS = `${url.pathname}${search}`.replace(/^\//, ''); ({ response, txtResponse, result } = await sendToProxy(