@eeacms/volto-cca-policy 0.3.61 → 0.3.62
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,6 +4,11 @@ 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.62](https://github.com/eea/volto-cca-policy/compare/0.3.61...0.3.62) - 4 July 2025
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Let's try again [Tiberiu Ichim - [`33edadf`](https://github.com/eea/volto-cca-policy/commit/33edadfcfaa23d294669fbe609bfa584673abf17)]
|
|
7
12
|
### [0.3.61](https://github.com/eea/volto-cca-policy/compare/0.3.60...0.3.61) - 4 July 2025
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -204,16 +204,21 @@ class View extends Component {
|
|
|
204
204
|
render() {
|
|
205
205
|
const { views } = config;
|
|
206
206
|
if (this.props.error && this.props.error.code === 301) {
|
|
207
|
-
const base = typeof window !== 'undefined' ? window.location.origin : '';
|
|
207
|
+
// const base = typeof window !== 'undefined' ? window.location.origin : '';
|
|
208
208
|
|
|
209
209
|
const redirect = flattenToAppURL(this.props.error.url)
|
|
210
210
|
.replaceAll('/++api++', '/')
|
|
211
|
+
.replaceAll('//', '/')
|
|
211
212
|
.split('?')[0];
|
|
213
|
+
const redirParams = {
|
|
214
|
+
pathname: redirect,
|
|
215
|
+
search: this.props.location.search,
|
|
216
|
+
};
|
|
217
|
+
|
|
212
218
|
// eslint-disable-next-line no-console
|
|
213
|
-
console.log('Redirecting',
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
);
|
|
219
|
+
console.log('Redirecting', redirParams);
|
|
220
|
+
|
|
221
|
+
return <Redirect to={redirParams} push={true} />;
|
|
217
222
|
} else if (this.props.error && !this.props.connectionRefused) {
|
|
218
223
|
let FoundView;
|
|
219
224
|
if (this.props.error.status === undefined) {
|