fix(housekeeping): avoid ase preview self-redirect

This commit is contained in:
Simo committed 2026-08-26 20:50:09 +02:00
1 parent f72a2b6c74
commit a9bdd6bd5d
8 files changed
+31 -26

No files matched your search

@@ -22,7 +22,7 @@ describe("hotelMigrationEntries", () => {
expect(
hotelMigrationEntries.every(
(row) =>
row.targetPath === null || row.targetPath.startsWith("/admin/hotel/"),
row.targetPath === null || row.targetPath.startsWith("/ase/hotel/"),
),
).toBe(true);
});
@@ -39,27 +39,27 @@ describe("hotelMigrationEntries", () => {
).toEqual([
{
legacyPath: "/admin/rooms",
targetPath: "/admin/hotel/rooms",
targetPath: "/ase/hotel/rooms",
decision: "REBUILD",
},
{
legacyPath: "/admin/rooms/:id",
targetPath: "/admin/hotel/rooms/:id",
targetPath: "/ase/hotel/rooms/:id",
decision: "MERGE",
},
{
legacyPath: "/admin/rooms/:id/furni",
targetPath: "/admin/hotel/rooms/:id/furni",
targetPath: "/ase/hotel/rooms/:id/furni",
decision: "REBUILD",
},
{
legacyPath: "/admin/rooms/edit/:id",
targetPath: "/admin/hotel/rooms/:id",
targetPath: "/ase/hotel/rooms/:id",
decision: "MERGE",
},
{
legacyPath: "/admin/rooms/show/:id",
targetPath: "/admin/hotel/rooms/:id",
targetPath: "/ase/hotel/rooms/:id",
decision: "MERGE",
},
]);