mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-08 01:08:43 +08:00
20 lines
475 B
TypeScript
20 lines
475 B
TypeScript
'use client';
|
|
import { useEffect } from 'react';
|
|
import { useCurrentLang } from '@/lib/localized-navigation';
|
|
import { getLocalizedPath } from '@/lib/i18n';
|
|
|
|
/**
|
|
* Fallback for pages not found
|
|
* Redirects to introduction page to avoid 404
|
|
*/
|
|
export default function NotFound() {
|
|
const lang = useCurrentLang();
|
|
|
|
useEffect(() => {
|
|
// Redirect to introduction page
|
|
window.location.replace(getLocalizedPath('/introduction', lang));
|
|
}, [lang]);
|
|
|
|
return null;
|
|
}
|