refactor(ui): remove backward-compat redirect for legacy invitation links (#10797)

Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-04-21 08:11:51 +02:00
1 parent 8d48c26c1e
commit 390bbdd1a6
6 files changed
+36 -34

No files matched your search

@@ -8,10 +8,6 @@ import { useEffect, useRef, useState } from "react";
import { acceptInvitation } from "@/actions/invitations";
import { Button } from "@/components/shadcn";
import {
INVITATION_ACTION_PARAM,
INVITATION_SIGNUP_ACTION,
} from "@/lib/invitation-routing";
type AcceptState =
| { kind: "no-token" }
@@ -204,7 +200,7 @@ export function AcceptInvitationClient({
className="w-full"
onClick={() => {
router.push(
`/sign-up?invitation_token=${encodeURIComponent(token!)}&${INVITATION_ACTION_PARAM}=${INVITATION_SIGNUP_ACTION}`,
`/sign-up?invitation_token=${encodeURIComponent(token!)}`,
);
}}
>