@eeacms/volto-cca-policy 0.3.59 → 0.3.60

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
@@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- ### [0.3.59](https://github.com/eea/volto-cca-policy/compare/0.3.58...0.3.59) - 3 July 2025
7
+ ### [0.3.60](https://github.com/eea/volto-cca-policy/compare/0.3.59...0.3.60) - 3 July 2025
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - Add customization for View.jsx [Tiberiu Ichim - [`8647300`](https://github.com/eea/volto-cca-policy/commit/864730053d2fe5dcf01d02085669bbab83203838)]
11
+ - Let's try again [Tiberiu Ichim - [`bd4367a`](https://github.com/eea/volto-cca-policy/commit/bd4367af3b02f724e9ae6e9d14e0cd963dca4042)]
12
+ ### [0.3.59](https://github.com/eea/volto-cca-policy/compare/0.3.58...0.3.59) - 3 July 2025
13
+
12
14
  ### [0.3.58](https://github.com/eea/volto-cca-policy/compare/0.3.57...0.3.58) - 3 July 2025
13
15
 
14
16
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.59",
3
+ "version": "0.3.60",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -205,8 +205,10 @@ class View extends Component {
205
205
  const { views } = config;
206
206
  if (this.props.error && this.props.error.code === 301) {
207
207
  const redirect = flattenToAppURL(this.props.error.url)
208
- .split('?')[0]
209
- .replaceAll('/++api++', '/');
208
+ .replaceAll('/++api++', '/')
209
+ .split('?')[0];
210
+ // eslint-disable-next-line no-console
211
+ console.log('Redirecting', redirect);
210
212
  return <Redirect to={`${redirect}${this.props.location.search}`} />;
211
213
  } else if (this.props.error && !this.props.connectionRefused) {
212
214
  let FoundView;