From 9e584b64aace5f0cf79feccf8153790b8d23f87f Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Wed, 15 Apr 2020 16:03:10 -0700 Subject: [PATCH] Update js/modules/loki_app_dot_net_api.js Co-Authored-By: Mikunj Varsani --- js/modules/loki_app_dot_net_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(