Skip to content

Commit 8762132

Browse files
committed
.
1 parent 55587b0 commit 8762132

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/not-found.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
'use client'
2+
3+
14
import type { Metadata } from "next";
25
export const metadata: Metadata = {
36
title: "redirecting",

components/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function NotFound404() {
1717
redirect('/legacy/index.html')
1818
}
1919
if (
20-
pathname.toLowerCase() == '/team/'
20+
pathname.toLowerCase().startsWith('/team')
2121
) {
2222
redirect('/team')
2323
}

0 commit comments

Comments
 (0)