efront 3.20.6 → 3.20.7
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/coms/zimoli/data.js +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/data.js
CHANGED
|
@@ -353,7 +353,7 @@ function fixApi(api, href) {
|
|
|
353
353
|
href = protocol + "//" + host + href;
|
|
354
354
|
}
|
|
355
355
|
else if (/^\.\//.test(href)) {
|
|
356
|
-
var { protocol, host, pathname } = parseURL(location.href);
|
|
356
|
+
var { protocol, host, pathname } = parseURL(document.baseURI || location.href);
|
|
357
357
|
href = href.slice(1);
|
|
358
358
|
if (pathname) href = pathname.replace(/\/[^\/\\]*$/, '') + href;
|
|
359
359
|
href = protocol + "//" + host + href;
|