8 lines
320 B
TypeScript
8 lines
320 B
TypeScript
import { redirect } from "next/navigation";
|
|||
|
|
|
||
|
|
/** The link in the invitation e-mail: the login page shows the invitation. */
|
||
|
|
export default async function InvitationLink({ params }: { params: Promise<{ token: string }> }) {
|
||
|
|
const { token } = await params;
|
||
|
|
redirect(`/belepes?meghivo=${encodeURIComponent(token)}`);
|
||
|
|
}
|