Skip to content

Commit 6623328

Browse files
committed
.
1 parent f3e928e commit 6623328

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/404.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export default function NotFound404() {
1414
const router = useRouter()
1515
const [ready, setReady] = useState(false)
1616

17+
18+
1719
useEffect(() => {
1820
if (pathname.toLowerCase().startsWith('/team') && pathname !== '/team') {
1921
router.replace('/team');
@@ -30,11 +32,6 @@ export default function NotFound404() {
3032
) {
3133
redirect('/legacy/index.html')
3234
}
33-
if (
34-
pathname.toLowerCase().startsWith('/team')
35-
) {
36-
redirect('/team')
37-
}
3835
if (
3936
pathname.toLowerCase() == '/recruit' ||
4037
pathname.toLowerCase() == '/recruit/'

0 commit comments

Comments
 (0)