@simmalugnt-se/payload-content-health 0.4.0 → 0.4.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/CHANGELOG.md +6 -0
- package/dist/links.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
- Signing in from the work list leads back to it. The login link's `redirect` lacked the Admin route
|
|
6
|
+
(`/content-health` instead of `/admin/content-health`), so Payload sent the editor to a page on
|
|
7
|
+
the site that does not exist.
|
|
8
|
+
|
|
3
9
|
## 0.4.0
|
|
4
10
|
|
|
5
11
|
- New check `content.untranslated`, turned on per collection with `translations: true`: localized
|
package/dist/links.js
CHANGED
|
@@ -48,7 +48,9 @@ export function accessRedirect(args) {
|
|
|
48
48
|
query.append(key, item);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
// Payload's login goes to `redirect` as it is, so it is the full path, Admin route included.
|
|
52
|
+
const view = formatAdminURL({ adminRoute: routes.admin, path: VIEW_PATH });
|
|
53
|
+
const back = `${view}${query.size ? `?${query}` : ""}`;
|
|
52
54
|
const login = formatAdminURL({ adminRoute: routes.admin, path: routes.login });
|
|
53
55
|
return `${login}?${new URLSearchParams({ redirect: back })}`;
|
|
54
56
|
}
|
package/package.json
CHANGED