We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55587b0 commit 8762132Copy full SHA for 8762132
app/not-found.tsx
@@ -1,3 +1,6 @@
1
+'use client'
2
+
3
4
import type { Metadata } from "next";
5
export const metadata: Metadata = {
6
title: "redirecting",
components/404.tsx
@@ -17,7 +17,7 @@ export default function NotFound404() {
17
redirect('/legacy/index.html')
18
}
19
if (
20
- pathname.toLowerCase() == '/team/'
+ pathname.toLowerCase().startsWith('/team')
21
) {
22
redirect('/team')
23
0 commit comments