Fixes double colon issue in baseApiUrl #2095

This commit is contained in:
Terence Monteiro
2024-05-28 05:48:35 -06:00
committed by Jose Alberto Hernandez
parent 545a998426
commit 50b80c1398
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export const environment = {
baseApiUrls: window['env']['fineractApiUrls'] ||
'https://dev.mifos.io,https://demo.mifos.io,https://qa.mifos.io,https://staging.mifos.io,https://mobile.mifos.io,https://demo.fineract.dev,https://localhost:8443',
// For connecting to server running elsewhere set the base API URL
baseApiUrl: window['env']['fineractApiUrl'] || window.location.protocol + '://' + window.location.hostname,
baseApiUrl: window['env']['fineractApiUrl'] || window.location.protocol + '//' + window.location.hostname,
allowServerSwitch: env.allow_switching_backend_instance,
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
apiVersion: window['env']['apiVersion'] || '/v1',
+2 -2
View File
@@ -16,9 +16,9 @@ export const environment = {
// For connecting to others servers running elsewhere update the base API URL
baseApiUrls: window['env']['fineractApiUrls'] ||
'https://dev.mifos.io,https://demo.mifos.io,https://qa.mifos.io,https://staging.mifos.io,https://mobile.mifos.io,https://demo.fineract.dev,https://localhost:8443,'
+ window.location.protocol + '://' + window.location.hostname + ':' + window.location.port,
+ window.location.protocol + '//' + window.location.hostname + ':' + window.location.port,
// For connecting to server running elsewhere set the base API URL
baseApiUrl: window['env']['baseApiUrl'] || window.location.protocol + '://' + window.location.hostname + ':' + window.location.port,
baseApiUrl: window['env']['baseApiUrl'] || window.location.protocol + '//' + window.location.hostname + ':' + window.location.port,
allowServerSwitch: env.allow_switching_backend_instance,
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
apiVersion: window['env']['apiVersion'] || '/v1',