This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
import { redirect } from "next/navigation";
|
|
||||||
|
|
||||||
export default function LocalizedRootRedirectPage() {
|
|
||||||
redirect("/root");
|
|
||||||
}
|
|
||||||
+1
-4
@@ -117,10 +117,7 @@ export default async function middleware(request: NextRequest) {
|
|||||||
const isSuperAdmin = await isSuperAdminSessionValid(request);
|
const isSuperAdmin = await isSuperAdminSessionValid(request);
|
||||||
const isRootBaseRoute = pathname === "/root" || pathname.startsWith("/root/");
|
const isRootBaseRoute = pathname === "/root" || pathname.startsWith("/root/");
|
||||||
|
|
||||||
const isRootRoute =
|
const isRootRoute = isRootBaseRoute;
|
||||||
isRootBaseRoute ||
|
|
||||||
pathname === `/${locale}/root` ||
|
|
||||||
pathname.startsWith(`/${locale}/root/`);
|
|
||||||
const isComingSoonRoute =
|
const isComingSoonRoute =
|
||||||
pathname === "/coming-soon" ||
|
pathname === "/coming-soon" ||
|
||||||
pathname.startsWith("/coming-soon/") ||
|
pathname.startsWith("/coming-soon/") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user