We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e928e commit 6623328Copy full SHA for 6623328
components/404.tsx
@@ -14,6 +14,8 @@ export default function NotFound404() {
14
const router = useRouter()
15
const [ready, setReady] = useState(false)
16
17
+
18
19
useEffect(() => {
20
if (pathname.toLowerCase().startsWith('/team') && pathname !== '/team') {
21
router.replace('/team');
@@ -30,11 +32,6 @@ export default function NotFound404() {
30
32
) {
31
33
redirect('/legacy/index.html')
34
}
- if (
- pathname.toLowerCase().startsWith('/team')
35
- ) {
36
- redirect('/team')
37
- }
38
if (
39
pathname.toLowerCase() == '/recruit' ||
40
pathname.toLowerCase() == '/recruit/'
0 commit comments