diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index db5fcb6bf..06843060e 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -486,7 +486,9 @@ class LokiAppDotNetServerAPI { ) { mode = '_sendToProxy'; - const endpointWithQS = url.toString().replace(this.baseServerUrl + '/', ''); + const endpointWithQS = url + .toString() + .replace(`${this.baseServerUrl}/`, ''); ({ response, txtResponse, result } = await this._sendToProxy( endpointWithQS, fetchOptions