fix(housekeeping): avoid ase preview self-redirect
This commit is contained in:
@@ -31,8 +31,7 @@ describe("contentMigrationEntries", () => {
|
||||
expect(
|
||||
contentMigrationEntries.every(
|
||||
(row) =>
|
||||
row.targetPath === null ||
|
||||
row.targetPath.startsWith("/admin/content/"),
|
||||
row.targetPath === null || row.targetPath.startsWith("/ase/content/"),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
@@ -45,23 +44,23 @@ describe("contentMigrationEntries", () => {
|
||||
).toEqual([
|
||||
{
|
||||
legacyPath: "/admin/articles/:id",
|
||||
targetPath: "/admin/content/editorial/articles/:id",
|
||||
targetPath: "/ase/content/editorial/articles/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/ads/:id",
|
||||
targetPath: "/admin/content/media/ads/:id",
|
||||
targetPath: "/ase/content/media/ads/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/events/:id",
|
||||
targetPath: "/admin/content/engagement/events/:id",
|
||||
targetPath: "/ase/content/engagement/events/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/polls/:id",
|
||||
targetPath: "/admin/content/engagement/polls/:id",
|
||||
targetPath: "/ase/content/engagement/polls/:id",
|
||||
},
|
||||
{
|
||||
legacyPath: "/admin/help-questions/:id",
|
||||
targetPath: "/admin/content/help/questions/:id",
|
||||
targetPath: "/ase/content/help/questions/:id",
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user