Files
triqura-ecd/app/epd/clients/[id]/page.tsx
colinislit a167bdcc6e feat: enhance EPD header with dynamic client data fetching
- Update EPD header to fetch and display real client data from database
- Add loading state while fetching client information
- Improve client name and birth date formatting
- Rename ClientDetailPage component to ClientRedirect for clarity
- Fix import path for ReleaseSidebar in documentation layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 00:12:01 +01:00

19 lines
484 B
TypeScript

import { redirect } from 'next/navigation';
interface ClientDetailPageProps {
params: Promise<{ id: string }>;
}
/**
* Redirect route: /epd/clients/[id] -> /epd/clients/[id]/dashboard
*
* Wanneer een gebruiker direct naar /epd/clients/[id] navigeert,
* wordt deze automatisch doorgestuurd naar het dashboard.
*/
export default async function ClientRedirect({
params,
}: ClientDetailPageProps) {
const { id } = await params;
redirect(`/epd/clients/${id}/dashboard`);
}