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 isRootBaseRoute = pathname === "/root" || pathname.startsWith("/root/");
|
||||
|
||||
const isRootRoute =
|
||||
isRootBaseRoute ||
|
||||
pathname === `/${locale}/root` ||
|
||||
pathname.startsWith(`/${locale}/root/`);
|
||||
const isRootRoute = isRootBaseRoute;
|
||||
const isComingSoonRoute =
|
||||
pathname === "/coming-soon" ||
|
||||
pathname.startsWith("/coming-soon/") ||
|
||||
|
||||
Reference in New Issue
Block a user