@plone/volto 17.20.0 → 17.20.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.20.1 (2024-10-30)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Fix error "Exception: No query supplied" in the listing block, when there is no criteria selected. @tedw87 [#3839](https://github.com/plone/volto/issues/3839)
|
|
25
|
+
- Fix redirect after login if the `Login` component is used on a route other than `/login` or `/logout`. @dobri1408 [#6452](https://github.com/plone/volto/issues/6452)
|
|
26
|
+
|
|
20
27
|
## 17.20.0 (2024-10-09)
|
|
21
28
|
|
|
22
29
|
### Feature
|
package/package.json
CHANGED
|
@@ -24,6 +24,14 @@ export default function getListingBlockAsyncData(props) {
|
|
|
24
24
|
const subrequestID = content?.UID ? `${content?.UID}-${id}` : id;
|
|
25
25
|
const currentPage = getCurrentPage(location, id);
|
|
26
26
|
|
|
27
|
+
if (!data.querystring) {
|
|
28
|
+
return [
|
|
29
|
+
async () => {
|
|
30
|
+
return null;
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
return [
|
|
28
36
|
dispatch(
|
|
29
37
|
getQueryStringResults(
|
|
@@ -75,7 +75,7 @@ const Login = (props) => {
|
|
|
75
75
|
const loading = useSelector((state) => state.userSession.login.loading);
|
|
76
76
|
const returnUrl =
|
|
77
77
|
qs.parse(props.location?.search ?? location.search).return_url ||
|
|
78
|
-
location.pathname.replace(/\/
|
|
78
|
+
location.pathname.replace(/\/[^/]*\/?$/, '') ||
|
|
79
79
|
'/';
|
|
80
80
|
|
|
81
81
|
useEffect(() => {
|