@plone/volto 16.31.4 → 16.31.5
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.draft +7 -3
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +11 -0
- package/netlify.toml +4 -0
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/src/components/manage/Widgets/FileWidget.jsx +1 -0
- package/src/components/theme/View/View.jsx +5 -0
- package/src/helpers/Api/Api.js +1 -1
- package/src/helpers/Api/Api.plone.rest.test.js +8 -6
- package/src/helpers/Api/Api.test.js +8 -6
package/.changelog.draft
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
## 16.31.
|
|
1
|
+
## 16.31.5 (2024-05-06)
|
|
2
2
|
|
|
3
3
|
### Bugfix
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- Fix
|
|
5
|
+
- Fix image disappears after pressing the Enter key on title field in image content-type. @iFlameing [#5973](https://github.com/plone/volto/issues/5973)
|
|
6
|
+
- Fix 301 and 302 redirects. @robgietema [#6001](https://github.com/plone/volto/issues/6001)
|
|
7
|
+
|
|
8
|
+
### Documentation
|
|
9
|
+
|
|
10
|
+
- Block search engines from indexing content on Netlify preview builds. @stevepiercy [#5916](https://github.com/plone/volto/issues/5916)
|
|
7
11
|
|
|
8
12
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.31.5 (2024-05-06)
|
|
12
|
+
|
|
13
|
+
### Bugfix
|
|
14
|
+
|
|
15
|
+
- Fix image disappears after pressing the Enter key on title field in image content-type. @iFlameing [#5973](https://github.com/plone/volto/issues/5973)
|
|
16
|
+
- Fix 301 and 302 redirects. @robgietema [#6001](https://github.com/plone/volto/issues/6001)
|
|
17
|
+
|
|
18
|
+
### Documentation
|
|
19
|
+
|
|
20
|
+
- Block search engines from indexing content on Netlify preview builds. @stevepiercy [#5916](https://github.com/plone/volto/issues/5916)
|
|
21
|
+
|
|
11
22
|
## 16.31.4 (2024-03-18)
|
|
12
23
|
|
|
13
24
|
### Bugfix
|
package/netlify.toml
CHANGED
package/package.json
CHANGED
|
@@ -206,6 +206,11 @@ class View extends Component {
|
|
|
206
206
|
if (this.props.error && this.props.error.code === 301) {
|
|
207
207
|
const redirect = flattenToAppURL(this.props.error.url).split('?')[0];
|
|
208
208
|
return <Redirect to={`${redirect}${this.props.location.search}`} />;
|
|
209
|
+
} else if (this.props.error && this.props.error.status === 302) {
|
|
210
|
+
const redirect = flattenToAppURL(
|
|
211
|
+
this.props.error.response.header.location,
|
|
212
|
+
).split('?')[0];
|
|
213
|
+
return <Redirect to={`${redirect}${this.props.location.search}`} />;
|
|
209
214
|
} else if (this.props.error && !this.props.connectionRefused) {
|
|
210
215
|
let FoundView;
|
|
211
216
|
if (this.props.error.status === undefined) {
|
package/src/helpers/Api/Api.js
CHANGED
|
@@ -3,12 +3,14 @@ import Api from './Api';
|
|
|
3
3
|
|
|
4
4
|
jest.mock('superagent', () => ({
|
|
5
5
|
get: jest.fn((url) => ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
redirects: jest.fn(() => ({
|
|
7
|
+
url,
|
|
8
|
+
query: jest.fn(),
|
|
9
|
+
set: jest.fn(),
|
|
10
|
+
type: jest.fn(),
|
|
11
|
+
send: jest.fn(),
|
|
12
|
+
end: jest.fn(),
|
|
13
|
+
})),
|
|
12
14
|
})),
|
|
13
15
|
}));
|
|
14
16
|
|
|
@@ -9,12 +9,14 @@ import Api from './Api';
|
|
|
9
9
|
|
|
10
10
|
jest.mock('superagent', () => ({
|
|
11
11
|
get: jest.fn((url) => ({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
redirects: jest.fn(() => ({
|
|
13
|
+
url,
|
|
14
|
+
query: jest.fn(),
|
|
15
|
+
set: jest.fn(),
|
|
16
|
+
type: jest.fn(),
|
|
17
|
+
send: jest.fn(),
|
|
18
|
+
end: jest.fn(),
|
|
19
|
+
})),
|
|
18
20
|
})),
|
|
19
21
|
}));
|
|
20
22
|
|