@plone/volto 17.22.0 → 17.22.1
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/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,13 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 17.22.1 (2025-08-25)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- fix(fetchContent): correctly handle undefined blocksType in async fetchContent @nileshgulia1 [#7112](https://github.com/plone/volto/issues/7112)
|
|
25
|
+
- Fix corner case in devproxy when pathname is null. @sneridagh [#7276](https://github.com/plone/volto/issues/7276)
|
|
26
|
+
|
|
20
27
|
## 17.22.0 (2025-05-20)
|
|
21
28
|
|
|
22
29
|
### Feature
|
package/package.json
CHANGED
|
@@ -232,7 +232,9 @@ export const fetchContent = async ({ store, location }) => {
|
|
|
232
232
|
|
|
233
233
|
const visitor = ([id, data]) => {
|
|
234
234
|
const blockType = data['@type'];
|
|
235
|
-
const
|
|
235
|
+
const block = blocksConfig[blockType];
|
|
236
|
+
if (!block) return;
|
|
237
|
+
const { getAsyncData } = block;
|
|
236
238
|
if (getAsyncData) {
|
|
237
239
|
const p = getAsyncData({
|
|
238
240
|
store,
|
|
@@ -10,8 +10,13 @@ import querystring from 'querystring';
|
|
|
10
10
|
import { parse as parseUrl } from 'url';
|
|
11
11
|
|
|
12
12
|
const filter = function (pathname, req) {
|
|
13
|
-
//
|
|
14
|
-
|
|
13
|
+
// Check if pathname is defined, there are some corner cases that pathname is null
|
|
14
|
+
if (pathname) {
|
|
15
|
+
// This is the proxy to the API in case the accept header is 'application/json'
|
|
16
|
+
return config.settings.devProxyToApiPath && pathname.startsWith('/++api++');
|
|
17
|
+
} else {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
15
20
|
};
|
|
16
21
|
|
|
17
22
|
let _env = null;
|