@dhis2/analytics 24.9.2 → 24.9.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [24.9.3](https://github.com/dhis2/analytics/compare/v24.9.2...v24.9.3) (2023-03-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ensure the base passed to URL is absolute ([#1452](https://github.com/dhis2/analytics/issues/1452)) ([4d45abb](https://github.com/dhis2/analytics/commit/4d45abb72b9b6c3e2d82e54a3a05abe0fd8b87b7))
|
|
7
|
+
|
|
1
8
|
## [24.9.2](https://github.com/dhis2/analytics/compare/v24.9.1...v24.9.2) (2023-03-14)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -33,7 +33,8 @@ const GetLinkDialog = _ref => {
|
|
|
33
33
|
baseUrl
|
|
34
34
|
} = (0, _appRuntime.useConfig)(); // TODO simply use href from the visualization object?
|
|
35
35
|
|
|
36
|
-
const
|
|
36
|
+
const appBaseUrl = new URL(baseUrl, self.location.href);
|
|
37
|
+
const appUrl = new URL((0, _utils.appPathFor)(type, id), appBaseUrl);
|
|
37
38
|
return /*#__PURE__*/_react.default.createElement(_ui.Modal, {
|
|
38
39
|
onClose: onClose
|
|
39
40
|
}, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
@@ -16,7 +16,8 @@ export const GetLinkDialog = _ref => {
|
|
|
16
16
|
baseUrl
|
|
17
17
|
} = useConfig(); // TODO simply use href from the visualization object?
|
|
18
18
|
|
|
19
|
-
const
|
|
19
|
+
const appBaseUrl = new URL(baseUrl, self.location.href);
|
|
20
|
+
const appUrl = new URL(appPathFor(type, id), appBaseUrl);
|
|
20
21
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
21
22
|
onClose: onClose
|
|
22
23
|
}, /*#__PURE__*/React.createElement(_JSXStyle, {
|