@unite-us/app-create-referral 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils/getBaseUrl.js
CHANGED
|
@@ -9,8 +9,7 @@ function getBaseUrl() {
|
|
|
9
9
|
// this is the base route where the referral flow started:
|
|
10
10
|
// eg: http://localhost:8081/34d3de5b7c/2/create-referral
|
|
11
11
|
// we should append this url to any navigation we might do inside the referral flow
|
|
12
|
-
var baseUrl = window.location.pathname.split("create-referral")[0] + "create-referral";
|
|
13
|
-
console.log(baseUrl);
|
|
12
|
+
var baseUrl = window.location.pathname.split("/create-referral")[0] + "/create-referral";
|
|
14
13
|
return baseUrl;
|
|
15
14
|
}
|
|
16
15
|
//# sourceMappingURL=getBaseUrl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseUrl.js","names":["getBaseUrl","baseUrl","window","location","pathname","split"
|
|
1
|
+
{"version":3,"file":"getBaseUrl.js","names":["getBaseUrl","baseUrl","window","location","pathname","split"],"sources":["../../src/utils/getBaseUrl.js"],"sourcesContent":["export default function getBaseUrl() {\n // this is the base route where the referral flow started:\n // eg: http://localhost:8081/34d3de5b7c/2/create-referral\n // we should append this url to any navigation we might do inside the referral flow\n const baseUrl = window.location.pathname.split(\"/create-referral\")[0] + \"/create-referral\"\n return baseUrl;\n}\n"],"mappings":";;;;;;;AAAe,SAASA,UAAUA,CAAA,EAAG;EACjC;EACF;EACA;EACA,IAAMC,OAAO,GAAGC,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAACC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB;EAC1F,OAAOJ,OAAO;AAChB"}
|