fix(housekeeping): avoid ase preview self-redirect
This commit is contained in:
@@ -14,5 +14,10 @@ export default async function AdminNextPage() {
|
||||
|
||||
if (!firstVisibleDomain) notFound();
|
||||
|
||||
redirect(toHousekeepingHref(firstVisibleDomain.canonicalHref, "preview"));
|
||||
const previewHref = toHousekeepingHref(
|
||||
firstVisibleDomain.canonicalHref,
|
||||
"preview",
|
||||
);
|
||||
|
||||
redirect(previewHref === "/ase-next" ? "/ase-next/operations" : previewHref);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user